
;Star Light (Kain܂łňԖ{CōOSǂ)
;o[W 0.01
;݃o[W VXef[^[system/System_InfotH_]ɋL v0.30.6ȍ~
;ӁIWindow ID 995͎gpł܂BG[pɊ蓖ĂĂ܂B
;ӁIWindow ID 996͎gpł܂BG[pɊ蓖ĂĂ܂B
;ӁIWindow ID 997͎gpł܂BG[pɊ蓖ĂĂ܂B
;ӁIWindow ID 998͎gpł܂BʒmpɊ蓖ĂĂ܂B
;ӁIWindow ID 999͎gpł܂BXNVpɊ蓖ĂĂ܂B

;ʒmACR
;200=ӃACR
;201=댯ACR
;202=XNVACR
;203=`FbNACR
;204=CtHACR
;205=SyncACRij

notesel tskb_set
noteload "system/theme/tskbchk.cfg"

Silent_Mode="Sound"
Screen_Capture_Stat="Capture";Lv`邩ǂuCaptureiLv`jvuNoCaptureiLv`֎~jv
Bar_BOOT=480;ÑvOXo[̒l
Bootmode="";u[g[h
Latest_OS_Name=""
Latest_OS_Build=""
Latest_OS_Version=""
Soft_Code=""

;vOXo[̂

	circle_x = 635
	circle_y = 305
	
	circle_size_x = 4
	circle_size_y = 4
	
	circle_range_x = 20
	circle_range_y = 20

	rad = 1.00
	rad2 = 1.50
	rad3 = 2.00
	rad4 = 2.50
	rad5 = 3.00


Notification_Mode=""

title ""+Latest_OS_Name+" "+Latest_OS_Version+""
Input_Box_Toumei=0


	#define Bar_TIME	38	// 1[v̎(ms)
#include"a2d.hsp"

#packopt hide 1



#module
#deffunc boxfa int ax, int ay, int bx, int by
	pdx = ax, bx, bx, ax
	pdy = ay, ay, by, by
	gsquare -1,pdx, pdy
	return
#global

////IWiEBhE{bNX̃Wuv////

	////////////////////////////////////////////////////////////////////////////////////////////////////
	// CƂ by Ponyo
	////////////////////////////////////////////////////////////////////////////////////////////////////

	#uselib "user32.dll"
	#func  GetWindowLongA		"GetWindowLongA"				int, int
	#func  SetWindowLongA		"SetWindowLongA"				int, int, int
	#func  SetLayered			"SetLayeredWindowAttributes"	int, int, int, int
	#func  SetWindowRgn			"SetWindowRgn"					int, int, int
	#func  ClientToScreen		"ClientToScreen"				int, int
	#func  SetParent			"SetParent"						int, int
	
	#uselib "gdi32.dll"
	#cfunc CreateRoundRectRgn	"CreateRoundRectRgn"			int, int, int, int, int, int
	
	#uselib "kernel32.dll"
	#func  Beep					"Beep"							int, int
*first

onerror goto *BOOT_ERR_SYS

title ""+Latest_OS_Name+" "+Latest_OS_Version+""
buffer 1,1280,680:color :boxf
lr=20;ProgressBarpR[huv
cr=2
arg=270
fflag=1
count=0
#define task(%1) await 10;ProgressBarpR[hu܂Łv

Tran=0;IWiEBhE{bNX̕ϐBȂB

    screen 0,1280,680,0,-3,0
    
hwnd0=hwnd	//EBhẼnh
#uselib "user32"
#cfunc GetSystemMenu1 "GetSystemMenu" int, nullptr
#func DeleteMenu1 "DeleteMenu" int, int, nullptr

#module
#deffunc gblur int p1, int p2

	;
	;	ڂW[
	;	gblur ڂx , tO
	;
	;	݂̑obt@ɊȈՂڂKp܂B
	;	ڂx́A傫lقǋȂ܂(dȂ܂)B
	;	tÓA0=XYA1=YA2=X̕I܂(ʏ0)B
	;
	gmode 3, ginfo_sx, ginfo_sy, 128
	if (p2&1)=0 {
		repeat p1
		pos 1,0:gcopy ginfo(3)
		pos 0,0:gcopy ginfo(3),2,0
		loop
	}
	if (p2&2)=0 {
		repeat p1
		pos 0,1:gcopy ginfo(3)
		pos 0,0:gcopy ginfo(3),0,2
		loop
	}
	return

#global

#module ;𐔂郂W[
#defcfunc charalen str a

OS_Text_Count=0 ;JE^
;SpȂUnicodeϊ2{ōőB
sdim buf,strlen(a)*2+2

cnvstow buf,a
repeat
	tmp = wpeek(buf,cnt*2)
	if tmp = 0 : break
	OS_Text_Count=OS_Text_Count+1
loop

return OS_Text_Count

#global

;	VXej[̃nh擾
	hSystemMenu = GetSystemMenu1 (hwnd)

;	2pɍ폜鍀ځB
;	$F000=TCYύXA$F010=ړA$F020=ŏA$F030=ő剻A
;	$F060=IA$F120=̃TCYɖ߂
	DeleteMenu1 hSystemMenu, $F010


#module

	// *** KvƂȂAPI萔̒` *** //
	#uselib "user32.dll"
	#func  _SetWindowLongA		"SetWindowLongA"		int, int, int
	#func  _SetWindowPos		"SetWindowPos"			int, nullptr, nullptr, nullptr, nullptr, nullptr, int
	#func  _GetWindowRect		"GetWindowRect"			int, int
	#func  _MapWindowPoints		"MapWindowPoints"		int, int, int, int

	#uselib "gdi32.dll"
	#cfunc _CreatePatternBrush	"CreatePatternBrush"	int
	#func  _GetStockObject		"GetStockObject"		int
	#func  _SetBkMode 			"SetBkMode"				int, int 
	#func  _SetBrushOrgEx		"SetBrushOrgEx"			int, int, int, int
	#func  _SetTextColor		"SetTextColor"			int, int

	// *** EBhEbZ[W *** //
	#define WM_CTLCOLOREDIT			0x0133

	// *** pX[h̓X^C *** //
	#define EM_SETPASSWORDCHAR		$CC

	// *** EBhEX^C̒` *** //
	#define GWL_STYLE		-16
	#define GWL_EXSTYLE		-20

	// *** wi[h̒` *** //
	#define OPAQUE			0
	#define TRANSPARENT		1

	// *** wIuWFNgnh𓧉߂ꂽpX[hX^Cɂ *** //
	#deffunc UpdatePasswordInput int prm1
		hObject = prm1
		newGinfoIntid = ginfo(24)
		sendmsg hObject, EM_SETPASSWORDCHAR, '*'
		_SetWindowLongA hObject, GWL_EXSTYLE, $0
		_SetWindowPos hObject, $27
		mref BMSCR, 67
		hBrush(newGinfoIntid) = _CreatePatternBrush( BMSCR(7) )
		oncmd gosub *OnCtlColor, WM_CTLCOLOREDIT
		return

	// *** EBhEbZ[W *** //
*OnCtlColor
	if ( hObject(oldGinfoIntid) == lParam ) {
		dim rect, 4
		oldGinfoIntid = ginfo(24)
		_SetBkMode wParam, TRANSPARENT
		_GetWindowRect lParam, varptr(rect)
		_MapWindowPoints 0, hwnd, varptr(rect), 2
		_SetBrushOrgEx wParam, -( rect(0) ), -( rect(1) ), 0
		_SetTextColor wParam, $FFFFFF
		return hBrush(oldGinfoIntid)
	}
	return

#global

 notesel theme_set
noteload "system/theme/themechk.cfg"

celload "system/theme/"+theme_set+"/Bios.bmp",1124
celload "system/theme/"+theme_set+"/Logo_MSS.bmp",8
celload "system/theme/"+theme_set+"/Logo2_MSS.bmp",9
celload "system/theme/"+theme_set+"/Logo_Eri.bmp",10

ginfo10=1286
ginfo11=709

cls 4
color 255,255,255
font "",65
pos 120,300
gmode 3,1280,680,256
gcopy 8
 
wait 210

cls 4
wait 50
color 255,255,255
font "",65
pos 0,40
gmode 3,1280,680,256
gcopy 1124

wait 200

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 1
	redraw 1
	wait 1
	loop

	filepath = "BOOT_IMAGE_FOLDER"
	dirlist x, filepath, 5
	if stat = 0 {
font "",18
pos 510,300
mes "An error has occurred.\n\n[Error] BOOT_IMAGE_FOLDER is not found.\n\n\nStar Light has stopped starting the system.\n\nްĲҰ̫ނ܂B";dvt@CȂƂ͂B

stop

}else{}

buffer 995 : picload "BOOT_IMAGE_FOLDER/FILE_CHECK_IMAGE/BIOS_IMAGE/BOOT_FILE_NOT_FOUND_ERROR.bmp"
buffer 996 : picload "BOOT_IMAGE_FOLDER/FILE_CHECK_IMAGE/BIOS_IMAGE/BOOT_PLEASE_RESTART.bmp"
buffer 997 : picload "BOOT_IMAGE_FOLDER/FILE_CHECK_IMAGE/BIOS_IMAGE/CAN_NOT_BOOT_ERROR.bmp"
gsel 0
*chack
//	tH_݂邩mFR[h
	filepath = "system"
	dirlist x, filepath, 5
;	stat  0=݂ȂA1=݂ Ԃ
	if stat = 0 {
gmode 1,1280,680,256
pos 560,230
gcopy 997

color 255,255,255
font "",18
pos 565,485
mes "msssoftware.cf/bug-report"

stop

}else{}

	filepath = "Screenshot"
	dirlist x, filepath, 5
	if stat = 0 {
		mkdir "Screenshot"
		goto *chack
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "CI",20,1
color 255,255,255
pos 440,450

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{}

exist "hspinet.as"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 997

color 255,255,255
font "",18
pos 565,485
mes "msssoftware.cf/bug-report"

stop

}else{}

exist "system/System_info/OS_VERSION.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{	
	notesel Latest_OS_Version
	noteload "system/System_Info/OS_VERSION.txt"
}

exist "system/System_info/OS_BUILD.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{
	notesel Latest_OS_Build
	noteload "system/System_Info/OS_BUILD.txt"
}

exist "system/System_info/OS_NAME.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{
	notesel Latest_OS_Name
	noteload "system/System_Info/OS_NAME.txt"
}

exist "system/System_info/OS_SOFTCODE.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{
	notesel Soft_Code
	noteload "system/System_Info/OS_SOFTCODE.txt"
}

exist "system/System_info/OS_EDITION.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{
	notesel Latest_OS_Edition
	noteload "system/System_Info/OS_EDITION.txt"
}

exist "system/System_info/OS_BOOT_MODE.txt"
if strsize = -1 {
gmode 1,1280,680,256
pos 560,230
gcopy 995

font "",20,1
color 255,255,255
pos 440,450
mes "THE FILE REQUIRED TO START DOES NOT EXIST"

font "",18
pos 560,485
mes "msssoftware.cf/bug-report"

stop

}else{
	notesel Bootmode
	noteload "system/System_Info/OS_BOOT_MODE.txt"
}

	celload "system/theme/"+theme_set+"/icon - Warning.png",69

buffer 2:picload  "system/theme/"+theme_set+"/Black.bmp"
buffer 3:picload "system/theme/"+theme_set+"/White.bmp"
buffer 4:picload "system/theme/"+theme_set+"/OSicon.bmp"

buffer 76:picload "system/theme/"+theme_set+"/Button - Design.bmp"
buffer 84:picload "system/theme/"+theme_set+"/Button - Design2.bmp"
buffer 85:picload "system/theme/"+theme_set+"/Button - Design3.bmp"
gsel 0,1

#ifndef __hspinet__
#define __hspinet__

	#uselib "hspinet.dll"
	#func global netinit netinit 0
	#func global netterm netterm $100
	#func global netexec netexec 1
	#func global neturl neturl 6
	#func global netdlname netdlname 6
	#func global netrequest netrequest 6

	#func global nkfcnv nkfcnv $202

#module __hspinet__

	#deffunc Download str url, str request, str dlname
		netinit
		neturl url
		netdlname dlname
		netrequest request
		repeat
			exist dlname
			netexec res
			if ( res ) {
				break
			}
			await 50
		loop
		netterm
		return

#global
#endif

#module

	#define EM_SETCUEBANNER 0x1501

	#deffunc setPlaceholder int objectID, str placeholder
		sdim UTF16, $200
		cnvstow UTF16, placeholder
		sendmsg objinfo( objectID, 2 ), EM_SETCUEBANNER, 1, varptr(UTF16)
		return

#global
#include "hspinet.as"
	   netinit 
        neturl "http://milaibox.erixon.cf/"
        netdlname "update.txt"
       netrequest "update.txt"
       repeat 
         netexec res
             if res : break
          await 50
        loop
	Download "https://news.yahoo.co.jp/pickup/domestic/rss.xml", "?rss", "News"
	notesel afpbbnews_news
	;	HSP{̉ɂHSPTvr[At@C

	exist "News"
	if strsize = -1 {News_Status="No":goto *OS_Boot_File_Load}else{News_Status="Yes"}
	
	noteload "News"
	nkfcnv afpbbnews_news, afpbbnews_news, "option"
	split afpbbnews_news, "title>", afpbbnews_news_title
	split afpbbnews_news, "link>", afpbbnews_news_link

*OS_Boot_File_Load;OSBFL

title ""+Latest_OS_Name+" "+Latest_OS_Version+""
notesel Boot_Stat
noteload "system/Boot_Stat.txt"

x=0
i=0

repeat 48
redraw 0
pos 0,0

color 255,255,255:boxf

setease 320,280,ease_quartic_out
y = getease(i,60)
color , ,
font "SVbN Light",42
pos 570,y:mes "Star Light"


redraw 1
await 16
i=i+1
loop

if Boot_Stat="OK" {}else{

color , ,
	font "",25
	pos -1000
	mes "Preparing to repair Star Light"

pos ginfo_winx-ginfo_mesx>>1,480
mes "Preparing to repair Star Light"

wait 400

goto *BOOT_ERROR_MANAGER

}

if Bootmode="safe" {goto *OS_BOOT_MODE_SAFE_MODE_INFO}else{}

notesel setup
	noteload "system/user/Setup.txt"
	if setup="Not Setup"{

i=0

repeat 34
redraw 0
pos 0,0

color 255,255,255:boxf

setease 280,360,ease_quartic_in
y = getease(i,45)
color , ,
font "SVbN Light",42
pos 570,y:mes "Star Light"

redraw 1
await 5
i=i+1
loop

		color 255,255,255:boxf:
		goto *setupos
}
goto *osstartup

*BOOT_ERROR_MANAGER

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

color 
font "Yu Gothic UI",30
pos 10,5
mes "Star LightC

color 80,80,80
font "Yu Gothic UI",24,1
	pos -1000
	mes "ONStar LightɃG[܂"

pos ginfo_winx-ginfo_mesx>>1,140
mes "ONStar LightɃG[܂"


font "Yu Gothic UI",20
	pos -1000
	mes "Star LightɈُ킪\܂B"

pos ginfo_winx-ginfo_mesx>>1,260
mes "Star LightɈُ킪\܂B"

font "Yu Gothic UI",20
	pos -1000
	mes "ُ킪Ȃ`FbNsACƃG[񕜂łꍇ܂B"

pos ginfo_winx-ginfo_mesx>>1,294
mes "ُ킪Ȃ`FbNsACƃG[񕜂łꍇ܂B"

objmode 2
font "Yu Gothic UI",18
objsize 200,45

pos 550,560
objimage 84,0,0,0,0,250,0
button goto"`FbNJn",*BOOT_ERROR_MANAGER_ERROR_CHECK

pos 1000,600
objimage 84,0,0,0,0,250,0
button goto"čċN",*BOOT_ERROR_MANAGER_SKIP

stop

*BOOT_ERROR_MANAGER_ERROR_CHECK
clrobj 0
color :boxf

wait 100

font "Yu Gothic UI",20
color 255,255,255
	pos -1000
	mes "Diagnosing Star Light..."

pos ginfo_winx-ginfo_mesx>>1,294
mes "Diagnosing Star Light..."

wait 500

onerror goto *BOOT_ERROR_MANAGER_ERROR_FOUND

	lr=30
	cr=2
//////////////////////VXeɊւf[^`FbN(炟w)///////////////////

	celload "system/theme/"+theme_set+"/Latest_OS_Check.bmp",211

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

i=0
repeat 90
redraw 0

gmode 3,1280,680,256
pos 570,240
gcopy 211

setease 550,712,ease_quartic_out
x = getease(i,120)
color 255,255,255:boxf x,230,740,380

color 255,255,255:boxf 480,480,800,510

font "Yu Gothic UI",20
	pos -1000
	mes "Star Lightُ͌o܂ł"

color 80,80,80

pos ginfo_winx-ginfo_mesx>>1,480
mes "Star Lightُ͌o܂ł"

redraw 1
await 12
i=i+1
loop

pos 1000,600
objimage 84,0,0,0,0,250,0
button goto"ʏN",*BOOT_ERROR_MANAGER_SKIP

pos 550,600
objimage 84,0,0,0,0,250,0
button goto"ēx`FbN",*BOOT_ERROR_MANAGER_ERROR_CHECK

stop

*BOOT_ERROR_MANAGER_ERROR_FOUND

color 255,255,255:boxf

redraw 0

font "Yu Gothic UI",30
	pos -1000
	mes "ُo"

color 60,60,60

pos ginfo_winx-ginfo_mesx>>1,100
mes "ُo"

font "Yu Gothic UI",19
	pos -1000
	mes "ȉ̃t@CɈُ킪܂B̃t@C̊mFKvłB"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,200
mes "ȉ̃t@CɈُ킪܂B̃t@C̊mFKvłB"


font "Yu Gothic UI",19
	pos -1000
	mes "t@C ["+CHECK_FILE+"] ُł"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,340
mes "t@C ["+CHECK_FILE+"] ُł"

font "Yu Gothic UI",19
	pos -1000
	mes "ُt@C̃pX - "+CHECK_FILE_PATH+"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,380
mes "ُt@C̃pX : "+CHECK_FILE_PATH+"

redraw 1

pos 550,600
objimage 84,0,0,0,0,250,0
button goto"CJn",*BOOT_ERROR_MANAGER_ERROR_REPAIR

pos 1000,600
objimage 84,0,0,0,0,250,0
button goto"ďI",*BOOT_ERROR_MANAGER_SKIP

stop

*BOOT_ERROR_MANAGER_ERROR_REPAIR
clrobj 0
color 255,255,255:boxf

redraw 0

font "Yu Gothic UI",30
	pos -1000
	mes "ُt@Cff"

color 60,60,60

pos ginfo_winx-ginfo_mesx>>1,100
mes "ُt@Cff"

font "Yu Gothic UI",19
	pos -1000
	mes "ȉ̃t@C̐ffłBffAC\ȏꍇIɏC܂B"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,200
mes "ȉ̃t@C̐ffłBffAC\ȏꍇIɏC܂B"


font "Yu Gothic UI",19
	pos -1000
	mes "t@C ["+CHECK_FILE+"] ffĂ܂..."

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,340
mes "t@C ["+CHECK_FILE+"] ffĂ܂..."

font "Yu Gothic UI",19
	pos -1000
	mes "ُt@C̃pX - "+CHECK_FILE_PATH+"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,380
mes "ُt@C̃pX : "+CHECK_FILE_PATH+"

redraw 1

wait 500

exist ""+CHECK_FILE_PATH+""+CHECK_FILE+""
if strsize = -1 {if DATA_Extension = "txt" {goto *BOOT_ERROR_MANAGER_ERROR_TXT_REPAIR}else{

clrobj 0
color 255,255,255:boxf

redraw 0

font "Yu Gothic UI",30
	pos -1000
	mes "milai֕"

color 60,60,60

pos ginfo_winx-ginfo_mesx>>1,100
mes "milai֕"

font "Yu Gothic UI",19
	pos -1000
	mes "ُt@C̎Cł܂łBmilaiɂ̖񍐂ĂB"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,200
mes "ُt@C̎Cł܂łBmilaiɂ̖񍐂ĂB"


font "Yu Gothic UI",19
	pos -1000
	mes "t@C ["+CHECK_FILE+"] ̏Cs"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,340
mes "t@C ["+CHECK_FILE+"] ̏Cs"

font "Yu Gothic UI",19
	pos -1000
	mes "ُt@C̃pX - "+CHECK_FILE_PATH+"

color 100,100,100

pos ginfo_winx-ginfo_mesx>>1,380
mes "ُt@C̃pX : "+CHECK_FILE_PATH+"

redraw 1

pos 550,600
objimage 84,0,0,0,0,250,0
button goto "OS̏CI",*BOOT_ERROR_MANAGER_ERROR_END

pos 1000,600
objimage 84,0,0,0,0,250,0
button goto"ʏN݂",*BOOT_ERROR_MANAGER_SKIP

stop
}}

*BOOT_ERROR_MANAGER_ERROR_TXT_REPAIR
goto *BOOT_ERROR_MANAGER_ERROR_REPAIR_OK
*BOOT_ERROR_MANAGER_ERROR_REPAIR_OK

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

i=0
repeat 90
redraw 0

gmode 3,1280,680,256
pos 570,240
gcopy 211

setease 550,712,ease_quartic_out
x = getease(i,120)
color 255,255,255:boxf x,230,740,380

color 255,255,255:boxf 480,480,800,510

font "Yu Gothic UI",20
	pos -1000
	mes "ُt@C̎C܂"

color 80,80,80

pos ginfo_winx-ginfo_mesx>>1,480
mes "ُt@C̎C܂"

redraw 1
await 12
i=i+1
loop

pos 1000,600
objimage 84,0,0,0,0,250,0
button goto"ʏNs",*BOOT_ERROR_MANAGER_SKIP

pos 550,600
objimage 84,0,0,0,0,250,0
button goto"ēx`FbNs",*BOOT_ERROR_MANAGER_ERROR_CHECK

stop



*BOOT_ERROR_MANAGER_ERROR_END

end

*BOOT_ERROR_MANAGER_SKIP

clrobj 0

Boot_Stat="OK"
notesel Boot_Stat
notesave "system/Boot_Stat.txt"

color 255,255,255:boxf

wait 100

color :boxf

wait 100

goto *First

*setupos

	onerror goto *OS_HSP_Error_Blue
	
	onexit goto *setuposexit
width 1280,680,0,0

r=255
g=255
b=255

	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf

if r > 0 {r=r-8:g=g-8:b=b-8}else{r=0:g=0:b=0}
color r,g,b

setease 400,300,ease_quartic_out
y = getease(i,60)

font "Yu Gothic UI",60
pos -1000

mes "milai"
pos ginfo_winx-ginfo_mesx>>1,y
mes "milai"

redraw 1
await 16
i=i+1
loop

buffer 5:picload "system/theme/"+theme_set+"/Sky Circle.bmp"
buffer 6:picload "system/theme/"+theme_set+"/Wi-Fi.bmp"
buffer 7:picload "system/theme/"+theme_set+"/Terms of service.bmp"
buffer 13:picload "system/theme/"+theme_set+"/Next.bmp"
buffer 14:picload "system/theme/"+theme_set+"/.bmp"
buffer 15:picload "system/theme/"+theme_set+"/ӂȂ.bmp"
buffer 16:picload "system/theme/"+theme_set+"/Back.bmp"
buffer 17:picload "system/theme/"+theme_set+"/OK.bmp"
buffer 18:picload "system/theme/"+theme_set+"/End.bmp"
buffer 19:picload "system/theme/"+theme_set+"/Open.bmp"
buffer 20:picload "system/theme/"+theme_set+"/Start.bmp"
buffer 22:picload "system/theme/"+theme_set+"/OK_MiniWindow.bmp";̐̓EBhEIDɂ܂B21͕ʂ̃EBhE\Ɏgp̂22łB
buffer 23:picload "system/theme/"+theme_set+"/Cancel_MiniWindow.bmp"
buffer 24:picload "system/theme/"+theme_set+"/Yes_MiniWindow.bmp"
buffer 25:picload "system/theme/"+theme_set+"/No_MiniWindow.bmp"
buffer 26:picload "system/theme/"+theme_set+"/Retry.bmp"
buffer 27:picload "system/theme/"+theme_set+"/Skip.bmp"
buffer 28:picload "system/theme/"+theme_set+"/User.bmp"
buffer 29:picload "system/theme/"+theme_set+"/Passsetting.bmp"
buffer 30:picload "system/theme/"+theme_set+"/Check.bmp"
buffer 31:picload "system/theme/"+theme_set+"/ProgressBar/Progress1.bmp"
buffer 32:picload "system/theme/"+theme_set+"/ProgressBar/Progress2.bmp"
buffer 33:picload "system/theme/"+theme_set+"/ProgressBar/Progress3.bmp"
buffer 34:picload "system/theme/"+theme_set+"/ProgressBar/Progress4.bmp"
buffer 35:picload "system/theme/"+theme_set+"/ProgressBar/Progress5.bmp"
buffer 36:picload "system/theme/"+theme_set+"/ProgressBar/Progress6.bmp"
buffer 37:picload "system/theme/"+theme_set+"/ProgressBar/Progress7.bmp"
buffer 38:picload "system/theme/"+theme_set+"/ProgressBar/Progress8.bmp"
buffer 40:picload "system/theme/"+theme_set+"/ProgressBar/Progress10.bmp"
buffer 41:picload "system/theme/"+theme_set+"/ProgressBar/Progress11.bmp"
buffer 42:picload "system/theme/"+theme_set+"/ProgressBar2/Progress1.bmp"
buffer 43:picload "system/theme/"+theme_set+"/ProgressBar2/Progress2.bmp"
buffer 44:picload "system/theme/"+theme_set+"/ProgressBar2/Progress3.bmp"
buffer 45:picload "system/theme/"+theme_set+"/ProgressBar2/Progress4.bmp"
buffer 46:picload "system/theme/"+theme_set+"/ProgressBar2/Progress5.bmp"
buffer 47:picload "system/theme/"+theme_set+"/ProgressBar2/Progress6.bmp"
buffer 48:picload "system/theme/"+theme_set+"/ProgressBar2/Progress7.bmp"
buffer 49:picload "system/theme/"+theme_set+"/ProgressBar2/Progress8.bmp"
buffer 51:picload "system/theme/"+theme_set+"/ProgressBar2/Progress10.bmp"
buffer 52:picload "system/theme/"+theme_set+"/ProgressBar2/Progress11.bmp"
buffer 53:picload "system/theme/"+theme_set+"/Mail.bmp"
buffer 54:picload "system/theme/"+theme_set+"/Weather.bmp"
buffer 55:picload "system/theme/"+theme_set+"/Button - Next.bmp"
buffer 56:picload "system/theme/"+theme_set+"/Button - Back.bmp"

celload "system/theme/"+theme_set+"/icon/OS_Warning.bmp",219

mmload "system/audio/ui/OS_Setup/Latest_Setup_Start.mp3",3
mmload "system/audio/ui/OS_Setup/Latest_Setup_Start_Click.mp3",4
mmload "system/audio/ui/OS_Setup/Latest_Setup_Error.wav",5
mmload "system/audio/ui/OS_Setup/Latest_Setup_Comp.mp3",6

gsel 0,1

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

	repeat 100
x=cnt*3
	gmode 3,1280,680,x
	pos 580,265
	gcopy 4
	redraw 1
	pos 0,10
	color 255,255,255
	await 10
	loop

onclick goto *OS_Start_Setup_Ani

mmplay 3

repeat

r=255
g=255
b=255

	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf

	gmode 3,1280,680,256
	pos 580,265
	gcopy 4

if r > 0 {r=r-8:g=g-8:b=b-8}else{r=0:g=0:b=0}
color r,g,b

setease 520,480,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",25

pos -1000
mes "NbN邩ʂ^bvĊJn"
pos ginfo_winx-ginfo_mesx>>1,y
mes "NbN邩ʂ^bvĊJn"

await 12
redraw 1
await 0
i=i+1
loop

wait 300

r=1
g=1
b=1
	x=0
	i=0
repeat 31
redraw 0
color 255,255,255:boxf

	gmode 3,1280,680,256
	pos 580,265
	gcopy 4

if r < 240 {r=r+8:g=g+8:b=b+8}else{r=255:g=255:b=255}
color r,g,b

font "Yu Gothic UI Semilight",25

pos -1000
mes "NbN邩ʂ^bvĊJn"
pos ginfo_winx-ginfo_mesx>>1,480
mes "NbN邩ʂ^bvĊJn"

await 12
redraw 1
await 0
i=i+1
loop

r=255
g=255
b=255
	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf

	gmode 3,1280,680,256
	pos 580,265
	gcopy 4

if r > 0 {r=r-8:g=g-8:b=b-8}else{r=0:g=0:b=0}
color r,g,b

setease 520,480,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",25

pos -1000
mes "Click or tap the screen to start"
pos ginfo_winx-ginfo_mesx>>1,y
mes "Click or tap the screen to start"

await 12
redraw 1
await 0
i=i+1
loop

wait 300

r=0
g=0
b=0
	x=0
	i=0
repeat 31
redraw 0
color 255,255,255:boxf

	gmode 3,1280,680,256
	pos 580,265
	gcopy 4

if r < 240 {r=r+8:g=g+8:b=b+8}else{r=255:g=255:b=255}
color r,g,b

font "Yu Gothic UI Semilight",25

pos -1000
mes "Click or tap the screen to start"
pos ginfo_winx-ginfo_mesx>>1,480
mes "Click or tap the screen to start"

await 12
redraw 1
await 0
i=i+1
loop

loop

*OS_Start_Setup_Ani

mmplay 4

	wait 10
	
	onclick 0
	repeat 20
x=cnt*10
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop
	cls

Lang_Ja=0
Language="Ja"
*Setup_OS_Language_Main
	
	clrobj 
	Lang_Ja=1

objmode 2
font "Yu Gothic UI",17
objsize 250,45
pos 515,540
objimage 84,0,0,0,0,250,0
button goto" / Language",*Setup_OS_Language_Select

objmode 2
objsize 115,45
pos 1050,550
objimage 84,0,0,0,0,250,0
font "Yu Gothic UI Semilight",18
button goto"Next >",*Setup_OS_Language_Set

if Language="Ja" {
	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 290,260,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",70

pos -1000
mes "ɂ́I"
pos ginfo_winx-ginfo_mesx>>1,y
mes "ɂ́I"

redraw 1
await 7
i=i+1
loop
}

if Language="Eng" {
	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 290,260,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",70

pos -1000
mes "Hello!"
pos ginfo_winx-ginfo_mesx>>1,y
mes "Hello!"

redraw 1
await 7
i=i+1
loop
}

stop

*Setup_OS_Language_Select
	clrobj 
	Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

objmode 2
font "Yu Gothic UI",17
objsize 250,45
pos 75,60
objimage 84,0,0,0,0,250,0
button goto"{ (Japanese)",*Setup_OS_Language_Ja

pos 75,120
objimage 84,0,0,0,0,250,0
button goto"English (US)",*Setup_OS_Language_Eng

	hRegion = CreateRoundRectRgn (0, 0, 390, 230, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45

redraw 0
	setease 0,288,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1

loop

i=0

repeat 45
	setease 288,280,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

stop

*Setup_OS_Language_Ja

Language="Ja"

Big_Window=0
	i=0
repeat 45
	setease 280,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1

goto *Setup_OS_Language_Main

*Setup_OS_Language_Eng

Language="Eng"

Big_Window=0
	i=0
repeat 45
	setease 280,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1

goto *Setup_OS_Language_Main

*Setup_OS_Language_Set
clrobj
if Language="Eng" {

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,400,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

color 255,255,255:boxf
Big_Window=0
	i=0

gmode 3,1280,680,256
pos 170,25
gcopy 219

color 80,80,80
font "Yu Gothic UI",21,1
pos 75,85
mes "Information this language"
redraw 1

font "Yu Gothic UI",17
pos 60,130
mes "This language may not be correct be\ncause you are using machine transla\ntion.

     gmode 2
    objsize 390,60
    objmode 2
    pos -1,239
objimage 85,0,0,0,0,500,0
    button "OK",*Setup_OS_Close_Window_Window2

hRegion = CreateRoundRectRgn (0, 0, 390, 320, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

i=0
repeat 45
redraw 0
	setease 0,368,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 368,360,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

stop
}

if Language="Ja" {

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,460,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

color 255,255,255:boxf
Big_Window=0
	i=0

gmode 3,1280,680,256
pos 170,25
gcopy 219

color 60,60,60
font "Yu Gothic UI",21,1
	pos -1000
	mes "x[^ł̎gp̒"
pos ginfo_winx-ginfo_mesx>>1,85
mes "x[^ł̎gp̒"

color 100,100,100
font "Yu Gothic UI",16
pos 60,130
mes "Star Light ́Aدް̂߃VXe\n̓ɉeoO邱Ƃ\n܂B"


       gmode 2
    objsize 390,60
    objmode 2
    pos -1,239
objimage 85,0,0,0,0,500,0
    button "OK",*Setup_OS_Close_Window_Window3


hRegion = CreateRoundRectRgn (0, 0, 390, 300, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

i=0
repeat 45
redraw 0
	setease 0,348,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 348,340,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

stop
}

goto *setuposwel

*Setup_OS_Close_Window


Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 360,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1

Lang_Ja=0

goto *Setup_OS_Language_Ja

*Setup_OS_Close_Window_Window2

Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 360,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1

goto *setuposwel

*Setup_OS_Close_Window_Window3

i=0
repeat 45
redraw 0
	setease 340,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

gsel 101,-1
gsel 0,1

goto *setupos_data
*setupos_data

if Language="Eng" {
	goto *setuposwel
}

		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

if Language="Ja" {

objmode 2
font "Yu Gothic UI",17
objsize 250,45
pos 515,280
objimage 84,0,0,0,0,250,0
button goto"VStar LightƂĐݒ",*Setup_OS_Data_New

objmode 2
font "Yu Gothic UI",17
objsize 250,45
pos 515,380
objimage 84,0,0,0,0,250,0
button goto"Star Light畜",*Setup_OS_Data_Restore
wait 20
	x=0
	i=0
repeat 60
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 110,80,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",35

pos -1000
mes "Star Light̐ݒ@I"
pos ginfo_winx-ginfo_mesx>>1,y
mes "Star Light̐ݒ@I"

font "Yu Gothic UI Semilight",18
color 120,120,120
pos -1000
mes "Star Lightǂ̂悤ɐݒ肵܂H"
pos ginfo_winx-ginfo_mesx>>1,150
mes "Star Lightǂ̂悤ɐݒ肵܂H"

await 6
redraw 1
await 0
i=i+1
loop
}

stop

*Setup_OS_Data_New
if Language="Ja" {
clrobj 0
Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 102,390,460,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

color 255,255,255:boxf
Big_Window=0
	i=0
	
color 100,100,100
font "Yu Gothic UI",16
	pos -1000
	mes "VStar LightƂĐݒ蒆"
pos ginfo_winx-ginfo_mesx>>1,55
mes "VStar LightƂĐݒ蒆"

hRegion = CreateRoundRectRgn (0, 0, 390, 200, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

i=0
repeat 45
redraw 0
	setease 0,248,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 248,240,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

;vOXo[
repeat 4
i=0
repeat 60
redraw 0
pos 0,0

color 255,255,255:boxf

setease 60,100,ease_quartic_in
Line_X = getease(i,60)

setease 60,260,ease_quartic_in
Line_X2 = getease(i,60)

color 0,180,200
boxf Line_X,120,Line_X2,121

color 100,100,100
font "Yu Gothic UI",16
	pos -1000
	mes "VStar LightƂĐݒ蒆"
pos ginfo_winx-ginfo_mesx>>1,55
mes "VStar LightƂĐݒ蒆"

redraw 1
await 8
i=i+1
loop

i=0
repeat 100
redraw 0
pos 0,0

color 255,255,255:boxf

setease 100,330,ease_quartic_out
Line_X = getease(i,100)

setease 260,330,ease_quartic_out
Line_X2 = getease(i,100)

color 0,180,200
boxf Line_X,120,Line_X2,121

color 100,100,100
font "Yu Gothic UI",16
	pos -1000
	mes "VStar LightƂĐݒ蒆"
pos ginfo_winx-ginfo_mesx>>1,55
mes "VStar LightƂĐݒ蒆"

redraw 1
await 8
i=i+1
loop

loop

}


i=0
repeat 45
redraw 0
	setease 240,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

gsel 102,-1
gsel 0,1

goto *setuposwel
*Setup_OS_Data_Restore

if Language="Ja" {
cls
setease 110,80,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",35

pos -1000
mes "latest.ziphbOAhhbvĂ"
pos ginfo_winx-ginfo_mesx>>1,y
mes "latest.ziphbOAhhbvĂ"
#uselib "shell32.dll"
#func DragAcceptFiles "DragAcceptFiles" int,int
#func DragQueryFile   "DragQueryFileA"  int,int,int,int
#func DragQueryPoint  "DragQueryPoint"  int,int
#func DragFinish      "DragFinish"      int

#define WM_DROPFILES    0x0233

; WM_DROPFILES bZ[Wnhݒ
oncmd gosub *OnDropFiles, WM_DROPFILES

; t@ChbOhbvł悤ɐݒ
DragAcceptFiles hwnd, 1
stop

*OnDropFiles
; --- t@ChbvꂽƂ ---

; hbvꂽt@C̐擾
hdrop = wParam                  ; hbvt@C̃nh
DragQueryFile hdrop, -1, 0, 0
ndrop = stat                    ; t@C̐

; ʂNA
syscolor 5 : boxf
syscolor 8 : pos 0,0

; t@C擾ĕ\
sdim filename, 260
repeat ndrop
        DragQueryFile hdrop, cnt, varptr(filename), 260
goto *ender
loop
; hbvt@CNA (Ȃƃ[NɂȂ)
DragFinish hdrop
return
}
*ender
	bcopy (filename) , "./Backup/latest.zip"
	setease 110,80,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI Semilight",35

pos -1000
mes "ċN܂"
pos ginfo_winx-ginfo_mesx>>1,y
mes "ċN܂"
wait 200
exec dirinfo(0)+"\\system\\cmd_files\\restore.bat"
end

*Setup_OS_Close_Window_Window4

i=0
repeat 45
redraw 0
	setease 340,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

gsel 101,-1
gsel 0,1

goto *setupos_data
	
*setuposwel

r=255
g=255
b=255

Lang_Ja=0

if Language="Ja" {
	
	clrobj 0
		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop
	width 1280,680,0,0
clrobj 0
	x=0
	i=0
repeat 70
redraw 0
color 255,255,255:boxf

if r > 0 {r=r-8:g=g-8:b=b-8}else{r=0:g=0:b=0}
color r,g,b

setease 330,150,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI",40
pos 553,y : mes "͂߂悤I"

setease 680,270,ease_quartic_out
y = getease(i,60)

font "Yu Gothic UI Semilight",20
pos 440,y : mes ""+Latest_OS_Name+" ւ悤!\n\nStar Light gp邽߂ɁAݒs܂B\n\nݒJnɂ́uJnvNbNĂB"

await 7

redraw 1
await 0
i=i+1
loop

    redraw 0

objmode 2
font "Yu Gothic UI Semilight",18
objsize 115,45
pos 585,550
objimage 84,0,0,0,0,250,0
button goto"Jn",*setuposnext

pos 50,30
objimage 84,0,0,0,0,250,0
button goto"< Language",*Setup_OS_Back_Language
}

if Language="Eng" {
	clrobj 0
		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop
	width 1280,680,0,0
clrobj 0
	x=0
	i=0
repeat 90
redraw 0
color 255,255,255:boxf

if r > 0 {r=r-8:g=g-8:b=b-8}else{r=0:g=0:b=0}
color r,g,b

setease 330,100,ease_quartic_out
y = getease(i,60)
font "Yu Gothic UI",40
pos 553,y : mes "\nLet's go!"

setease 680,270,ease_quartic_out
y = getease(i,60)

font "Yu Gothic UI Semilight",20
pos 440,y : mes "Welcome to "+Latest_OS_Name+" ! \n\nMake the necessary settings to use the Star Light OS.\n\nClick [Start] to start the setup."
redraw 1
await 5
i=i+1
loop

    redraw 0

objmode 2
font "Yu Gothic UI Semilight",18
objsize 115,45
pos 1050,550
objimage 84,0,0,0,0,250,0
button goto"Start >",*setuposnext

pos 50,30
objimage 84,0,0,0,0,250,0
button goto"< Back",*Setup_OS_Back_Language
}

    await 16
    redraw 1

    stop

*Setup_OS_Back_Language

if Language="Ja" {

clrobj 0
	x=0
	i=0

r=0
g=0
b=0
	
repeat 70
redraw 0

color 255,255,255:boxf

if r > 240 {r=255:g=255:b=255}else{r=r+8:g=g+8:b=b+8}
color r,g,b

setease 150,0,ease_quartic_inout
y = getease(i,60)
font "Yu Gothic UI",40

pos 553,y : mes "͂߂悤I"

setease 270,0,ease_quartic_inout
y = getease(i,60)

font "Yu Gothic UI Semilight",20
pos 440,y : mes ""+Latest_OS_Name+" ւ悤!\n\nStar Light gp邽߂ɁAݒs܂B\n\nݒJnɂ́uJnvNbNĂB"

await 7

redraw 1
await 0
i=i+1
loop
}

if Language="Eng" {

clrobj 0
	x=0
	i=0

r=0
g=0
b=0
	
repeat 70
redraw 0

color 255,255,255:boxf

if r > 240 {r=255:g=255:b=255}else{r=r+8:g=g+8:b=b+8}
color r,g,b

setease 550,780,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI",40

pos x+3,90 : mes "\n Let's go!"
setease 140,0,ease_quartic_out
x = getease(i,60)

setease 440,780,ease_quartic_out
x = getease(i,60)

font "Yu Gothic UI Semilight",20
pos x,280 : mes "Welcome to "+Latest_OS_Name+"!\n\nMake the necessary settings to use the Star Light OS.\n\nClick [Start] to start the setup."

await 7

redraw 1
await 0
i=i+1
loop
}

goto *Setup_OS_Language_Main
     
*setuposnext

Kiyaku_Stat="No"

if Language="Ja" {

clrobj 0
	x=0
	i=0

r=0
g=0
b=0
	
repeat 70
redraw 0

color 255,255,255:boxf

if r > 240 {r=255:g=255:b=255}else{r=r+8:g=g+8:b=b+8}
color r,g,b

setease 150,0,ease_quartic_inout
y = getease(i,60)
font "Yu Gothic UI",40

pos 553,y : mes "͂߂悤I"

setease 270,0,ease_quartic_inout
y = getease(i,60)

font "Yu Gothic UI Semilight",20
pos 440,y : mes ""+Latest_OS_Name+" ւ悤!\n\nStar Light gp邽߂ɁAݒs܂B\n\nݒJnɂ́uJnvNbNĂB"

await 7

redraw 1
await 0
i=i+1
loop
}

if Language="Eng" {

clrobj 0
	x=0
	i=0

r=0
g=0
b=0
	
repeat 70
redraw 0

color 255,255,255:boxf

if r > 240 {r=255:g=255:b=255}else{r=r+8:g=g+8:b=b+8}
color r,g,b

setease 550,370,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI",40

pos x+3,90 : mes "\n Let's go!"
setease 140,0,ease_quartic_out
x = getease(i,60)

setease 440,330,ease_quartic_out
x = getease(i,60)

font "Yu Gothic UI Semilight",20
pos x,280 : mes "Welcome to "+Latest_OS_Name+"!\n\nMake the necessary settings to use the Star Light OS.\n\nClick [Start] to start the setup."

await 7

redraw 1
await 0
i=i+1
loop
}



if Language="Ja" {
	
x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 600,440,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,50:gcopy 7
font "Yu Gothic UI Semilight",40

setease 700,570,ease_quartic_out
x = getease(i,60)
pos x,30 : mes "\npK"

setease 680,350,ease_quartic_out
font "Yu Gothic UI Semilight",19
x = getease(i,60)
color 100,100,100

pos x,280
mes "Star Light̂pɂ́AStar Light̃T[rXpKɓӂĂKv܂B\n\nVC\T[rXALuxelaASaferAStar Light Media Center̓C^[lbgɐڑA\nStar LightVXeł́AWindows̃VXeɃANZX܂B"
font "Yu Gothic UI Semilight",17
redraw 1
await 5
i=i+1
loop
}

if Language="Eng" {
	
x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 1280,580,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,10:gcopy 7
font "Yu Gothic UI Semilight",40
y=90
pos x-120,y : mes "\nTerms and Conditions"
setease 1280,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Please agree to the Star Light OS terms and conditions.\n\n@@@@@@@@@@To accept the terms and conditions, click [I agree].\n\n@@@@@@@@@@If you do not agree, please click [Not agree].\n@@@@@@@@@@If you click [Not agree], the default setting is terminated."
redraw 1
await 5
i=i+1
loop
}

*setuposnexttaiki

if Language="Ja" {

redraw 0
color 255,255,255:boxf
color 0,0,0

gmode 1,1280,680,x:pos 440,50:gcopy 7

font "Yu Gothic UI Semilight",40
pos 570,30 : mes "\npK"

font "Yu Gothic UI Semilight",19
color 100,100,100
pos 350,280
mes "Star Light̂pɂ́AStar Light̃T[rXpKɓӂĂKv܂B\n\nVC\T[rXALuxelaASaferAStar Light Media Center̓C^[lbgɐڑA\nStar LightVXeł́AWindows̃VXeɃANZX܂B"
font "Yu Gothic UI Semilight",17
     
    gmode 2
objmode 2
objsize 115,45
pos 800,550
objimage 84,0,0,0,0,250,0
button gosub"ӂ",*setuposdoui
BUTTON_ID = 1

objmode 2
objsize 115,45
pos 400,550
objimage 84,0,0,0,0,250,0
button goto"ӂȂ",*setuposdouishinai
BUTTON_ID = 2

objmode 2
objsize 150,45
pos 568,450
objimage 84,0,0,0,0,250,0
button goto"Star LightpK",*setuposkiyaku
BUTTON_ID = 2

redraw 1

}

if Language="Eng" {

redraw 0
color 255,255,255:boxf
color 
gmode 1,1280,680,256:pos 580,10:gcopy 7
font "Yu Gothic UI Semilight",40
pos 460,90 : mes "\nTerms and Conditions"
font "Yu Gothic UI Semilight",20
pos 200,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Please agree to the Star Light OS terms and conditions.\n\n@@@@@@@@@@To accept the terms and conditions, click [I agree].\n\n@@@@@@@@@@If you do not agree, please click [Not agree].\n@@@@@@@@@@If you click [Not agree], the default setting is terminated."
redraw 1

    redraw 0
     
    gmode 2
objmode 2
objsize 115,45
pos 800,550
objimage 84,0,0,0,0,250,0
button gosub"Agree",*setuposdoui
BUTTON_ID = 1

objmode 2
objsize 115,45
pos 400,550
objimage 84,0,0,0,0,250,0
button goto"Not agree",*setuposdouishinai
BUTTON_ID = 2

objmode 2
font "Yu Gothic UI Semilight",16
objsize 200,45
pos 548,450
objimage 84,0,0,0,0,250,0
button goto"View terms and Conditions",*setuposkiyaku
BUTTON_ID = 2

}

    await 16
    redraw 1

    stop
*setuposkiyaku

	colorStyle(0) = 240
	colorStyle(1) = 240
	colorStyle(2) = 240		; 0, 1, 2  O̐F(RGB)
	colorStyle(3) = 240
	colorStyle(4) = 240
	colorStyle(5) = 240		; 3, 4, 5  ̐F(RGB)
	colorStyle(6) = 0
	colorStyle(7) = 0
	colorStyle(8) = 0		; 6, 7, 8  ̐F(RGB)
	
Kiyaku_Stat="Yes"
clrobj
Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ


Big_Window_X=point(0)+400
Big_Window_Y=point(1)+680
bgscr 101,480,580,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf
if Language="Ja"{
color 80,80,80
font "Yu Gothic UI",21,1
pos 50,10
mes "pK"
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
sdim data,1080
data="Star Light pK\n\nmilai\n\n̗pK(ȉAu{KvƂ܂B)́AmilaiStar LightŒ񋟂T[rXiȉAu{T[rXvƂ܂Bj̗p߂̂łBp[U[̊FliȉAu[U[vƂ܂Bjɂ́A{Kɏ]āA{\tgEFAуT[rXp܂B\n\n\n\n(쌠ی)\n\n{\tgpɂ\n{\tgEFAuStar Lightv́A쌠ی삳Ă܂BҖ{l̋ȂɃ\tgA{\tg̉摜𖳒fgp肷ƁAmilaiɂ菈邩A\tggpłȂȂȂǂ̑Ήs܂B\n\n\n(T|[gɂ)\n\n1D{\tg̃T|[gɂ\n{\tgEFAł́A_ł2020N79܂łƂȂĂ܂BT|[gIɔāA\tgEFA̕sPAbvf[gȂǂ̒񋟂SďI܂Bȏ̓eF邱ƂɂėpKɓӂ̂Ƃ܂B\n\n2DT|[gԓł̈ᔽsׂɂ\nT|[gԂÍA{\tgEFẢA摜gp邱Ƃ܂AT|[gԓɃ\tgEFẢAщ摜̖fgpsꍇ́Aň̏ꍇStar Lightgp֎~ɂȂ\܂B\n\n\nO([U[yуpX[h̕ۊ)\n\n1DStar Light gp郆[U[́A{T[rXȂǂ̗pɔă[U[yуpX[hǗ̂Ƃ܂B\n\n2D[U[́AȂꍇɂA[U[yуpX[hO҂ɏn܂͑ݗ^邱Ƃ͂ł܂BmilaíA[U[yуpX[h̑gݍ킹vStar LightɃOCꂽꍇɂ́Ã[U[{lgpĂƂ݂Ȃ܂B\n\n3DmilaíA[U[̃[U[yуpX[h̊Ǘ̖ɂStar LightgpłȂȂĂAؐӔC𕉂܂B\n\n\nl(֎~)\n\nStar Lightgp郆[U[́A{T[rX̂pɂAȉ̍sׂĂ͂܂B\n\n(1) 쌠ی삳ꂽ摜̖f]ځAіfgp\n\n(2)ƍߍsׂɊ֘As\n\n(3)milaĩT[rX̉^cWQ邨̂s\n\n(4)ق̃[U[ɐ肷܂s\n\n(5)̑AmilaisK؂Ɣfs\n\n\n܏(pK̕ύX)\n\nmilaíAKvƔfꍇɂ́A[U[ɒʒm邱ƂȂł{KύX̂Ƃ܂B\n\n\nȏ\n\n2018N711 milai"
pos 0,50
mesbox data,480,505,0
objmode 2
font "Yu Gothic UI Semilight",17

    objsize 70,30
objimage 84,0,0,0,0,250,0
    pos 390,10
    font "Yu Gothic UI Semilight",16
    color 0,166,255
    button gosub "",*setuposkiyakuclose

}

if Language="Eng"{
color 80,80,80
font "Yu Gothic UI",21,1
pos 30,10
mes "Terms and Conditions"
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
sdim data,1080
data="Star Light OS Terms of Use\n\nmilai\n\nThese Terms of use (hereinafter referred to as these Terms). ), milai is the service provided on this Star Light OS (hereinafter referred to as the service). The terms of use. Users (hereinafter referred to as users). You will be required to use the software and services in accordance with these terms.\n\n\n\nArticle 1 (Copyright protection)\n\nWhen using this software\nThe software Star Light OS is copyright protected. If you modify the software without permission from the creator himself, or if you use the image of this software unauthorized, you will be punished by milai, or the software will not be able to use.\n\n\nArticle 2 (support)\n\n1. About the support of this software.The software is currently up to July 9, 2020. With the end of the support, all the software bug improvement updates and other offers will be terminated. You agree to the terms of use by approving the above content.\n\n2.Violations within the support period\nAfter the end of the support period, we will allow you to modify the software and use the image, but if you have made unauthorized use of the software and the image during the support period, the worst case Star Light OS may be prohibited.\n\n\nArticle 3 (Storing user information and passwords)\n\n1. Users who use Star Light OS shall manage user information and passwords as a result of the use of the services.\n\n2.In no event will the user transfer or lend any user information or password to any third party. This milai is deemed to be used by the user in the event that the user information and password combination match and login to Star Light OS.\n\n3.This milai is not responsible for the users user information and password management issues, even if the Star Light OS cannot be used.\n\n\nArticle 4 (Prohibited matters)\n\nUsers who use Star Light OS may not use the following acts to use the service.\n\n(1) Unauthorized reproduction of copyright-protected images and unauthorized use.\n\n(2) Acts related to criminal activity\n\n(3) Actions that may interfere with the operation of the milai service\n\n(4) Act of impersonating other users\n\n(5) Other acts deemed inappropriate by the milai\n\n\nArticle 5 (change of terms of use)\n\nThe milai shall change this agreement at any time without notifying the user if deemed necessary.\n\n\nMore than\n\nJul 11, 2018 milai"
pos 0,50
mesbox data,480,505,0

objmode 2
font "Yu Gothic UI Semilight",17

    objsize 70,30
objimage 84,0,0,0,0,250,0
    pos 390,10
    font "Yu Gothic UI Semilight",16
    color 0,166,255
    button gosub "Close",*setuposkiyakuclose

}

	hRegion = CreateRoundRectRgn (0, 0, 480, 550, 40, 40)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,598,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
redraw 0
	setease 598,590,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1

await 0

loop

stop

*setuposkiyakuclose
	onexit *setuposexit

Big_Window=0
	i=0
repeat 45
	setease 590,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

	gsel 101,-1
	gsel 0,1
goto *setuposnexttaiki
*setuposdoui

clrobj

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

if Kiyaku_Stat ! "Yes" {
	//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

if Language="Ja" {

color 80,80,80
font "Yu Gothic UI",21,1
pos -1000
mes "pK񂪖mF"
pos ginfo_winx-ginfo_mesx>>1,35
mes "pK񂪖mF"


font "Yu Gothic UI",17
pos 60,110
mes "pKmFĂ܂B̂܂\nsĂ낵łH"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 84,0,0,0,0,250,0
objsize 195,50
pos -1,210
button goto "͂",*Setup_OS_Kiyaku_Doui_K
pos 195,210
button goto "",*setuposcansel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

repeat;ꉞstop͏܂
wait 1
loop
    
}}
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

if Language="Ja" {

color 80,80,80
font "Yu Gothic UI",21,1
pos 125,35
mes "pKɓ"

font "Yu Gothic UI",17
pos 60,110
mes "pKɓӂďݒ𑱍s\nB낵łH"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 84,0,0,0,0,250,0
objsize 195,50
pos -1,210
button goto "͂",*setuposwifi1
pos 195,210
button goto "",*setuposcansel
}

if Language="Eng" {

color 80,80,80
font "Yu Gothic UI",19,1
pos 50,37
mes "Agree to the terms and conditions"

font "Yu Gothic UI",17
pos 60,85
mes "Accept the terms of use and continue\nwith Setup. Are you sure?

redraw 1

objmode 2
font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 100,45
    
    pos 100,170
objimage 84,0,0,0,0,250,0
    button "Cancel",*setuposcansel

    objsize 100,45
    
    pos 200,170
objimage 84,0,0,0,0,250,0
    button "OK",*setuposwifi1

}

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

repeat;ꉞstop͏܂
wait 1
loop

*Setup_OS_Kiyaku_Doui_K

Kiyaku_Stat="Yes"

Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

goto *setuposdoui

*setuposdouishinai
clrobj 0
goto *setuposwel
*setuposwifi1

Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1
goto *setuposwifi
*setuposcansel
	
	Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1
goto *setuposnexttaiki
*setuposwifi

	clrobj 0

if Language="Ja" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 440,300,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,50:gcopy 6
font "Yu Gothic UI Semilight",40

setease 560,430,ease_quartic_out
x = getease(i,60)
pos x,30 : mes "\nlbg[NmFĂ"

setease 680,400,ease_quartic_out
font "Yu Gothic UI Semilight",19
x = getease(i,60)
color 100,100,100

pos x,280
mes "lbg[N̐ڑ؂Ă܂\nlbg[N̐ڑ@́AWindows̐ݒ@ɏ]ĂB\n\nڑeXg NbNƁAlbg[N̐ڑs܂B"
font "Yu Gothic UI Semilight",17
redraw 1
await 5
i=i+1
loop

    redraw 0

objmode 2
objsize 115,45
pos 725,550
objimage 84,0,0,0,0,250,0
button gosub"ڑeXg",*setuposwifinext

pos 585,550
objimage 84,0,0,0,0,250,0
button gosub"XLbv",*setuposwifiskip

pos 455,550
objsize 45,45
objimage 56,0,0,0,0,45,0
button gosub"",*setuposwel

}

if Language="Eng" {


x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 1280,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
gmode 1,1280,680,x:pos x,10:gcopy 6
y=90
pos x-120,y : mes "\nConnect to Network"
setease 1280,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@When you connect to the network, you can maximize the Star Light OS.\n\n@@@@@@@@@@Test the connection. Set up your network in advance from the Windows side.\n\n@@@@@@@@@@Click [Start] to start the connection test."
redraw 1
await 5
i=i+1
loop

    redraw 0

objmode 2
objsize 115,45
pos 1050,550
objimage 84,0,0,0,0,250,0
button gosub"Start >",*setuposwifinext

pos 300,550
objimage 84,0,0,0,0,250,0
button gosub"Skip",*setuposwifiskip

pos 100,550
objimage 84,0,0,0,0,250,0
button gosub"< Back",*setuposwel

}

    await 16
    redraw 1

    stop
*setuposwifinext
	width 1280,680,0,0

clrobj 0

		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

if Language="Ja" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-60,y : mes "\n`FbN"
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@΂炭҂...\n\n\n@@@@@@@@@@ڑeXgłB\n\n@@@@@@@@@@܂Star LightIȂłB"
redraw 1
await 5
i=i+1
loop
}

if Language="Eng" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0
	
setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-90,y : mes "\nTesting connection"
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Please wait...\n\n\n@@@@@@@@@@The connection is being tested.\n\n@@@@@@@@@@Do not exit Star Light OS until completed."
redraw 1
await 5
i=i+1
loop
}

#include "hspinet.as"
netinit
neturl "http://www.onionsoft.net/"
netrequest "index.cgi"
repeat
netexec res
	if res > 0 : goto *setuposwifico
	if res < 0 : goto *setuposwifiba
	wait 1
loop
*setuposwifico

	width 1280,680,0,0
	net="Yes"
	clrobj 0

redraw 0
color 255,255,255:boxf
color 0,0,0

if Language="Ja"{

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0
	
setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
font "Yu Gothic UI Semilight",40
pos x-60,y : mes "\nɐڑ"
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@ڑeXg܂\n\n\n@@@@@@@@@@ڑɐ܂B\n\n@@@@@@@@@@Neturl : http://www.onionsoft.net/\n@@@@@@@@@@netrequest : index.cgi\n@@@@@@@@@@Status : Success"
redraw 1
await 5
i=i+1
loop
}

if Language="Eng"{

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
font "Yu Gothic UI Semilight",40
pos x-100,y : mes "\nConnection test success"
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Connection test Completed\n\n\n@@@@@@@@@@The connection was successful.\n\n@@@@@@@@@@Neturl : http://www.onionsoft.net/\n@@@@@@@@@@netrequest : index.cgi\n@@@@@@@@@@Status : Success"
redraw 1
await 5
i=i+1
loop
	
}

    redraw 0
     
    gmode 2

objmode 2
objsize 45,45
pos 1050,550
objimage 55,0,0,0,0,45,0
button gosub"",*setuposuser

    await 16
    redraw 1

    stop
*setuposwifiba
	width 1280,680,0,0
	net="No"
		clrobj 0

if Language="Ja"{

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-60,y : mes "\nڑG["
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@ڑeXg܂\n\n\n@@@@@@@@@@ڑɎs܂B\n\n@@@@@@@@@@Neturl : http://www.onionsoft.net/\n@@@@@@@@@@netrequest : index.cgi\n@@@@@@@@@@netexec : res\n@@@@@@@@@@Status : Failed"
redraw 1
await 5
i=i+1
loop
}

if Language="Eng"{

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-90,y : mes "\nConnection Test Failed"
setease 200,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,-80 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Connection test Completed.\n\n\n@@@@@@@@@@Connection failed.\n\n@@@@@@@@@@Neturl : http://www.onionsoft.net/\n@@@@@@@@@@netrequest : index.cgi\n@@@@@@@@@@Status : Failed"
redraw 1
await 5
i=i+1
loop
}
redraw 0
     
    gmode 2
     
objmode 2
objsize 45,45
objimage 55,0,0,0,0,45,0
button gosub"",*setuposuser
objmode 2

if Language="Ja"{
objsize 115,45
pos 250,550
objimage 84,0,0,0,0,250,0
button gosub"Ďs",*setuposwifinext
}

if Language="Eng"{
objsize 115,45
pos 250,550
objimage 84,0,0,0,0,250,0
button gosub"Retry",*setuposwifinext
}
    await 16
    redraw 1

    stop
*setuposwifiskip
	width 1280,680,0,0
	net="No"
*setuposuser

clrobj 0


if Language="Ja" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 600,440,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,50:gcopy 28
font "Yu Gothic UI Semilight",40

setease 700,570,ease_quartic_out
x = getease(i,60)
pos x,30 : mes "\n[U[ݒ"

setease 740,510,ease_quartic_out
font "Yu Gothic UI Semilight",19
x = getease(i,60)
color 100,100,100

pos x,250
mes "Star Lightgp̂͒NłH\nݒ肷郆[U[͂ĂB"
font "Yu Gothic UI Semilight",17
redraw 1
await 5
i=i+1
loop
}

if Language="Eng" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 1280,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
gmode 1,1280,680,x:pos x,10:gcopy 28
y=90
pos x-55,y : mes "\nUser settings"
setease 1280,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x-60,-60 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@@@@@Enter the user name you want to use with Star Light OS.\n@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@When you have finished typing, click [Next]."

redraw 1
await 5
i=i+1
loop
}
user=""
if Language="Ja" {
pos 550,420
mes ""
}

if Language="Eng" {
pos 530,420
mes "User name"
}

	; F̃X^C
	colorStyle(0) = 220
	colorStyle(1) = 220
	colorStyle(2) = 220		; 0, 1, 2  O̐F(RGB)
	colorStyle(3) = 220
	colorStyle(4) = 220
	colorStyle(5) = 220		; 3, 4, 5  ̐F(RGB)
	colorStyle(6) = 0
	colorStyle(7) = 0
	colorStyle(8) = 0		; 6, 7, 8  ̐F(RGB)

pos 500,360
input user, 300, 30
setPlaceholder 0, "[U["

if Language="Ja" {
    redraw 0
     
    gmode 2
    objsize 115,45

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupospass
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setuposwifi
    await 16
    redraw 1
}

if Language="Eng" {
    redraw 0
     
    gmode 2
    objsize 115,45

    redraw 0

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupospasscheck
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setuposuser

redraw 1
}
    stop
*setupospass
	width 1280,680,0,0
clrobj 0

if Language="Ja" {

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 600,440,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,50:gcopy 29
font "Yu Gothic UI Semilight",40

setease 700,570,ease_quartic_out
x = getease(i,60)
pos x,30 : mes "\nStar Lightی"

setease 650,430,ease_quartic_out
font "Yu Gothic UI Semilight",19
x = getease(i,60)
color 100,100,100

pos x,250
mes "ی@\Lɂ邱ƂɂAȂ̃[U[\np邱ƂhƂł܂B"
font "Yu Gothic UI Semilight",17
redraw 1
await 5
i=i+1
loop
}

if Language="Eng" {
	x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 1280,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
gmode 1,1280,680,x:pos x,10:gcopy 29
y=90
pos x-95,y : mes "\nSecurity protection"
setease 1280,200,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x-130,-50 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@@@@@To safely protect the Star Light OS, it is estimated to set a password.\n\n@@@@@@@@@@@@@@Please enter your password. If you do not want to set it, leave it blank and click [Next].\n\n@@@@@@@@@@@@@@When you have finished typing, click [Next]."
redraw 1
await 5
i=i+1
loop
}

if Language="Ja" {

objmode 2
objsize 150,45
pos 568,400
objimage 84,0,0,0,0,250,0
button goto"ʃbNݒ",*Setup_OS_Pass_Set
BUTTON_ID = 2

;pos 500,460
;ponosInputBox pass_check, DPI(300), DPI(30), colorStyle
;setPlaceholder 1, "pX[h̊mF"
;sendmsg objinfo_hwnd(1),204,'*'

    redraw 0

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupospasscheck
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setuposuser

}

if Language="Eng" {
	pass=""
pass_check=""
pos 375,460
mes "Enter password
pos 380,490
input pass,200,30,16
sendmsg objinfo_hwnd(0),204,'*'
pos 680,460
mes "Confirm Password"
pos 680,490
input pass_check,200,30,16
sendmsg objinfo_hwnd(1),204,'*'

    redraw 0

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupospasscheck
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setuposuser

}

    await 16
    redraw 1

stop

*Setup_OS_Pass_Set
	
Pass_Set_Window=1
	clrobj
Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

pass=""
pass_check=""
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+400
Big_Window_Y=point(1)+680
bgscr 101,480,580,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0

color 255,255,255:boxf

if Language="Ja"{

color 80,80,80
font "Yu Gothic UI",21,1
pos 50,25
mes "Star Lightی"

color 60,60,60
font "Yu Gothic UI",20
pos 50,160
mes "ݒ肷pX[h"

color 80,80,80
font "Yu Gothic UI Semilight",16
pos 50,190
mes "pX[h͔p8ȏオSł

color 255,,,
font "Yu Gothic UI",15
pos 50,330
mes "pX[hYꂽꍇAStar LightԂɖ߂Kv܂B\n̍ہASẴf[^폜܂̂łӂB


objmode 2
font "Yu Gothic UI",17
pos 80,280

input pass, 300, 30
setPlaceholder 0, "pX[h"
sendmsg objinfo_hwnd(0),204,'*'

    objsize 100,45
    
    pos 200,430
objimage 84,0,0,0,0,250,0
    button "",*Setup_OS_Pass_Set2


}

	hRegion = CreateRoundRectRgn (0, 0, 480, 550, 40, 40)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,598,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
redraw 0
	setease 598,590,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1

await 0

loop

stop

*Setup_OS_Pass_Set2
clrobj 0
redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 50,25
mes "Star Lightی"

color 60,60,60
font "Yu Gothic UI",20
pos 50,160
mes "ݒ肷pX[hē͂Ă"

color 80,80,80
font "Yu Gothic UI Semilight",16
pos 50,190
mes "pX[h͔p8ȏオSł

objmode 2
font "Yu Gothic UI",17
pos 80,280

input pass_check,300,30
setPlaceholder 0, "pX[h̊mF"
sendmsg objinfo_hwnd(0),204,'*'

redraw 1

    objsize 100,45
    
    pos 200,430
objimage 84,0,0,0,0,250,0
    button "ݒ",*setupospasscheck

stop

*setupospasscheck
	
if pass=""{if Pass_Set_Window=1 {goto *Set_Pass_No} else {goto *setupospassno}}
if pass = pass_check :goto *setuposserchenext: else :goto *setupospasserr
	stop

*Set_Pass_No

clrobj 0

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 50,25
mes "Star Lightی삹ɑs"

color 60,60,60
font "Yu Gothic UI",20
pos 100,160
mes "Star Lightی삹ɑs܂H"

color 80,80,80
font "Yu Gothic UI Semilight",16
pos 100,190
mes "NłStar Lightgpł悤ɂȂ܂

redraw 1

objmode 2

    objsize 150,45
    
    pos 160,300
objimage 84,0,0,0,0,250,0
    button "ی삹ɑs",*setuposserchenext

    pos 160,360
objimage 84,0,0,0,0,250,0
    button "یݒɖ߂",*Setup_OS_Pass_Set

stop

*setuposserchenext
	Pass_Set_Window=0
if Language="Ja"{
i=0

repeat 45
redraw 0
	setease 590,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1

await 0

loop

gsel 101,-1
gsel 0,1

goto *setuposser

}

if Language="Eng" {

color 80,80,80
font "Yu Gothic UI",19,1
pos 80,37
mes "Set Password and Continue"

font "Yu Gothic UI",17
pos 70,85
mes "Set a password to continue Setup.\nAre you sure?

redraw 1

objmode 2
font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 100,45
    
    pos 100,170
objimage 84,0,0,0,0,250,0
    button "No",*setupospasscancel

    objsize 100,45
    
    pos 200,170
objimage 84,0,0,0,0,250,0
    button "Yes",*setupospasspro

}

Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 0,280,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

    await 16
    redraw 1
    
	stop
*setupospasserr

clrobj

if Language="Ja" {
pass=""
pass_check=""
mmplay 5

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 50,25
mes "Star Lightی"

color 60,60,60
font "Yu Gothic UI",20
pos 50,160
mes "蒼"

color 80,80,80
font "Yu Gothic UI Semilight",16
pos 50,190
mes "pX[h͔p8ȏオSł

color 255,,,
font "Yu Gothic UI",15
pos 50,330
mes "pX[hsv"


objmode 2
font "Yu Gothic UI",17
pos 80,280

input pass, 300, 30
setPlaceholder 0, "pX[h"
sendmsg objinfo_hwnd(0),204,'*'

    objsize 100,45
    
    pos 200,430
objimage 84,0,0,0,0,250,0
    button "",*Setup_OS_Pass_Set2

}

if Language="Eng" {

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf


mmplay 5

color 80,80,80
font "Yu Gothic UI",19,1
pos 110,37
mes "Password mismatch"

font "Yu Gothic UI",17
pos 55,85
mes "The password you entered is incorrect.\nPlease try again.

redraw 1

objmode 2
font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45
    
    pos 100,170
objimage 84,0,0,0,0,250,0
    button "OK",*setupospasscancel

Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 0,280,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop


}
    redraw 1

	i=0
repeat 45
	setease Big_Window_X,420,ease_shake_in
	Big_Window_E_X = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_E_X,Big_Window_Y3
	i=i+1
	await 8
loop
    
	stop

*setupospasscancel
Pass_Set_Window=0
		clrobj 0
	Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
gsel 101,-1
    gsel 0,1
    
*Setup_Pass_Can_Desk
	
if Language="Ja" {
	
redraw 0
color 255,255,255:boxf
color 0,0,0

gmode 1,1280,680,x:pos 440,50:gcopy 29
font "Yu Gothic UI Semilight",40
pos 570,30 : mes "\nStar Lightی"

font "Yu Gothic UI Semilight",19
color 100,100,100

pos 430,250
mes "ی@\Lɂ邱ƂɂAȂ̃[U[\np邱ƂhƂł܂B"
redraw 1

}

if Language="Eng" {

redraw 0
color 255,255,255:boxf
color 0,0,0

font "Yu Gothic UI Semilight",40
gmode 1,1280,680,256:pos 580,10:gcopy 29
pos 485,90 : mes "\nSecurity protection"
font "Yu Gothic UI Semilight",20
pos 70,-50 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@@@@@To safely protect the Star Light OS, it is estimated to set a password.\n\n@@@@@@@@@@@@@@Please enter your password. If you do not want to set it, leave it blank and click [Next].\n\n@@@@@@@@@@@@@@When you have finished typing, click [Next]."
redraw 1

}

if Language="Ja" {
pass=""
pass_check=""

objmode 2
objsize 150,45
pos 568,400
objimage 84,0,0,0,0,250,0
button goto"ʃbNݒ",*Setup_OS_Pass_Set
BUTTON_ID = 2

;pos 500,460
;ponosInputBox pass_check, DPI(300), DPI(30), colorStyle
;setPlaceholder 1, "pX[h̊mF"
;sendmsg objinfo_hwnd(1),204,'*'

    redraw 0

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupospasscheck
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setuposuser

}

if Language="Eng" {
	pass=""
pass_check=""
pos 375,460
mes "Enter password
pos 380,490
input pass,200,30,16
sendmsg objinfo_hwnd(0),204,'*'
pos 680,460
mes "Confirm Password"
pos 680,490
input pass_check,200,30,16
sendmsg objinfo_hwnd(1),204,'*'

    redraw 0

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button "",*setupospasscheck
objmode 2
objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button "",*setuposuser

}

    await 16
    redraw 1

stop
    
stop
*setupospassno


clrobj

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop


//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

if Language="Ja" {

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "ی삹ɑs"
pos ginfo_winx-ginfo_mesx>>1,50
mes "ی삹ɑs"
font "Yu Gothic UI",17
pos 60,110
mes "Star Lightی삹ɏݒ𑱍s\n낵łH"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 84,0,0,0,0,250,0
objsize 195,50
pos -1,210
button goto "͂",*setupos_nopasspro
pos 195,210
button goto "",*setupospasscancel
}

if Language="Eng" {

color 80,80,80
font "Yu Gothic UI",19,1
pos 95,37
mes "Do not set a password"

font "Yu Gothic UI",17
pos 70,85
mes "Continue with Setup without setting \na password. Are you sure?

redraw 1

objmode 2
font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 100,45
    
    pos 100,170
objimage 84,0,0,0,0,250,0
    button "No",*setupospasscancel

    objsize 100,45
    
    pos 200,170
objimage 84,0,0,0,0,250,0
    button "Yes",*setupospasspro

}

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

stop

*setupos_nopasspro
	pass=""
pass_check=""

Pass_Set_Window=0
		clrobj 0
	Big_Window=0
i=0

repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop
gsel 101,-1
    gsel 0,1

goto *setuposser

*setupospasspro
Pass_Set_Window=0
		clrobj 0
	Big_Window=0
i=0

repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop
gsel 101,-1
    gsel 0,1

*setuposser
	Pass_Set_Window=0
	width 1280,680,0,0
	clrobj 0
if Language="Eng" {goto *setuposfin}
		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

x=0
i=0
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 620,380,ease_quartic_out
x = getease(i,60)
gmode 1,1280,680,x:pos x,50:gcopy 54
font "Yu Gothic UI Semilight",40

setease 700,510,ease_quartic_out
x = getease(i,60)
pos x,30 : mes "\nVC\T[rX"

setease 740,420,ease_quartic_out
font "Yu Gothic UI Semilight",19
x = getease(i,60)
color 100,100,100

pos x,240
mes "VC\T[rX́AStar LightœVC\̊mFsT[rXł\ñT[rX̂pɂ͂Z̓s{ݒ肷Kv܂\n\ñT[rXpɂȂꍇ͓s{͂Ă"
font "Yu Gothic UI Semilight",17
redraw 1
await 5
i=i+1
loop


font "Yu Gothic UI Semilight",20

tenki=""
pos 540,390
mes "s{
pos 540,450
input tenki,200,30,16
setPlaceholder 0, "jTokyoȂ"

    redraw 0
gmode 2

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupossercheck

pos 585,550
objsize 115,45
objimage 84,0,0,0,0,250,0
button goto "XLbv",*setupossercheno

objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setupospass
    await 16
    redraw 1

stop
*setupossercheck
if tenki="Hokkaido" or tenki="Aomori" or tenki="Iwate" or tenki="Miyagi" or tenki="Akita" or tenki="Yamagata" or tenki="Fukushima" or tenki="Ibaraki" or tenki="Tochigi" or tenki="Gunma" or tenki="Saitama" or tenki="Chiba" or tenki="Tokyo" or tenki="Kanagawa" or tenki="Niigata" or tenki="Toyama" or tenki="Ishikawa" or tenki="Fukui" or tenki="Yamanashi" or tenki="Nagano" or tenki="Gifu" or tenki="Shizuoka" or tenki="Aichi" or tenki="Mie" or tenki="Shiga" or tenki="Kyoto" or tenki="Nara" or tenki="Wakayama" or tenki="Tottori" or tenki="Shimane" or tenki="Okayama" or tenki="Hiroshima" or tenki="Yamaguchi" or tenki="Tokushima" or tenki="Yamaguchi" or tenki="Tokushima" or tenki="Kagawa" or tenki="Ehime" or tenki="Kochi" or tenki="Fukuoka" or tenki="Saga" or tenki="Nagasaki" or tenki="Kumamoto" or tenki="Oita" or tenki="Miyazaki" or tenki="Kagoshima" or tenki="Okinawa" or tenki="Osaka" or tenki="Hyogo" {goto *setuposserche}else{goto *setupossererr}
	stop
*setupossercheno

clrobj

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "VC\T[rXȂ"
pos ginfo_winx-ginfo_mesx>>1,50
mes "VC\T[rXȂ"
font "Yu Gothic UI",17
pos 60,110
mes "VC\T[rXpɑs\nĂ낵łH"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 84,0,0,0,0,250,0
objsize 195,50
pos -1,210
button goto "͂",*setupossernext
pos 195,210
button goto "",*setuposserchecan


	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

stop

*setupossererr
clrobj
Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

mmplay 5
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "Ȃs{"
pos ginfo_winx-ginfo_mesx>>1,50
mes "Ȃs{"
font "Yu Gothic UI",17
pos 60,110
mes "͂ꂽs{͐܂\nBē͂ĂB"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 85,0,0,0,0,500,0
objsize 390,50

pos -1,210
button goto "OK",*setuposserchecan

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop
   
    await 16
    redraw 1
	stop
*setuposserche
clrobj

Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
	
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,360,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

if Language="Ja" {

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "VC\T[rX𗘗p"
pos ginfo_winx-ginfo_mesx>>1,50
mes "VC\T[rX𗘗p"
font "Yu Gothic UI",17
pos 60,110
mes "VC\T[rXݒ肵đsĂ\n낵łH"

redraw 1

objmode 2
font "Yu Gothic UI Semilight",16

objimage 84,0,0,0,0,250,0
objsize 195,50
pos -1,210
button goto "͂",*setupossernext
pos 195,210
button goto "",*setuposserchecan
}


	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
mmplay 13

repeat 45
redraw 0
	setease 0,308,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

stop
*setuposserchecan
		clrobj 0
	Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
gsel 101,-1
    gsel 0,1

x=0
i=0


redraw 0
color 255,255,255:boxf
color 0,0,0

font "Yu Gothic UI Semilight",40
gmode 1,1280,680,256:pos 380,50:gcopy 54
pos 510,30 : mes "\nVC\T[rX"
font "Yu Gothic UI Semilight",19
pos 420,240
color 100,100,100
mes "VC\T[rX́AStar LightœVC\̊mFsT[rXł\ñT[rX̂pɂ͂Z̓s{ݒ肷Kv܂\n\ñT[rXpɂȂꍇ͓s{͂Ă"

font "Yu Gothic UI Semilight",20

tenki=""
pos 540,390
mes "s{
pos 540,450
input tenki,200,30,16
setPlaceholder 0, "jTokyoȂ"

redraw 1

gmode 2

objmode 2
objsize 45,45
pos 720,550
objimage 55,0,0,0,0,45,0
button gosub"",*setupossercheck

pos 585,550
objsize 115,45
objimage 84,0,0,0,0,250,0
button goto "XLbv",*setupossercheno

objsize 45,45
pos 520,550
objimage 56,0,0,0,0,45,0
button gosub"",*setupospass
    await 16
    redraw 1
    
stop
*setupossernext
		clrobj 0
	Big_Window=0
	i=0
mmplay 13
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
gsel 101,-1
    gsel 0,1

if tenki="Hokkaido" {tenki="1400":tenki_Name="kC"}
if tenki="Aomori" {tenki="3110":tenki_Name="X"}
if tenki="Iwate" {tenki="3310":tenki_Name="茧"}
if tenki="Miyagi" {tenki="3410":tenki_Name="{錧"}
if tenki="Akita" {tenki="3210":tenki_Name="Hc"}
if tenki="Yamagata" {tenki="3510":tenki_Name="R`"}
if tenki="Fukushima" {tenki="3610":tenki_Name=""}
if tenki="Ibaraki" {tenki="4010":tenki_Name="錧"}
if tenki="Tochigi" {tenki="4110":tenki_Name="Ȗ،"}
if tenki="Gunma" {tenki="4210":tenki_Name="Qn"}
if tenki="Saitama" {tenki="4310":tenki_Name="ʌ"}
if tenki="Chiba" {tenki="4510":tenki_Name="t"}
if tenki="Tokyo" {tenki="4410":tenki_Name="s"}
if tenki="Kanagawa" {tenki="4610":tenki_Name="_ސ쌧"}
if tenki="Niigata" {tenki="5410":tenki_Name="V"}
if tenki="Toyama" {tenki="5510":tenki_Name="xR"}
if tenki="Ishikawa" {tenki="5610":tenki_Name="ΐ쌧"}
if tenki="Fukui" {tenki="5710":tenki_Name="䌧"}
if tenki="Yamanashi" {tenki="4910":tenki_Name="R"}
if tenki="Nagano" {tenki="4810":tenki_Name="쌧"}
if tenki="Gifu" {tenki="5210":tenki_Name="򕌌"}
if tenki="Shizuoka" {tenki="5010":tenki_Name="É"}
if tenki="Aichi" {tenki="5110":tenki_Name="m"}
if tenki="Mie" {tenki="5310":tenki_Name="Od"}
if tenki="Shiga" {tenki="6010":tenki_Name="ꌧ"}
if tenki="Kyoto" {tenki="6120":tenki_Name="s"}
if tenki="Nara" {tenki="6410":tenki_Name="ޗǌ"}
if tenki="Wakayama" {tenki="6510":tenki_Name="a̎R"}
if tenki="Tottori" {tenki="6910":tenki_Name="挧"}
if tenki="Shimane" {tenki="6810":tenki_Name=""}
if tenki="Okayama" {tenki="6610":tenki_Name="R"}
if tenki="Hiroshima" {tenki="6710":tenki_Name="L"}
if tenki="Yamaguchi" {tenki="8110":tenki_Name="R"}
if tenki="Tokushima" {tenki="7110":tenki_Name=""}
if tenki="Kagawa" {tenki="7200":tenki_Name="쌧"}
if tenki="Ehime" {tenki="7310":tenki_Name="Q"}
if tenki="Kochi" {tenki="7410":tenki_Name="m"}
if tenki="Fukuoka" {tenki="8210":tenki_Name=""}
if tenki="Saga" {tenki="8510":tenki_Name="ꌧ"}
if tenki="Nagasaki" {tenki="8410":tenki_Name="茧"}
if tenki="Kumamoto" {tenki="8610":tenki_Name="F{"}
if tenki="Oita" {tenki="8310":tenki_Name="啪"}
if tenki="Miyazaki" {tenki="8710":tenki_Name="{茧"}
if tenki="Kagoshima" {tenki="1000":tenki_Name=""}
if tenki="Okinawa" {tenki="9110":tenki_Name="ꌧ"}
if tenki="Hyogo" {tenki="6310":tenki_Name="ꌧ"}
if tenki="Osaka" {tenki="6200":tenki_Name=""}
if tenki="jTokyoȂ" {tenki="No":tenki_Name="No"}
goto *setuposfin
*setuposfin
	width 1280,680,0,0
	clrobj 0

		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

x=0
i=0

if Language="Ja"{
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-60,y : mes "\nݒۑ"
setease 350,350,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x,y-20 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@   ݒStar LightɓKp"
redraw 1
await 7
i=i+1
loop

}

if Language="Eng"{
repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0

setease 580,580,ease_quartic_out
font "Yu Gothic UI Semilight",40
x = getease(i,60)
y=90
pos x-65,y : mes "\nSaving settings"
setease 350,350,ease_quartic_out
x = getease(i,60)
font "Yu Gothic UI Semilight",20
pos x-15,y-20 : mes "\n\n\n\n\n\n\n\n\n\n\n\n@@@@@@@@@@Applying settings to Star Light"
redraw 1
await 5
i=i+1
loop
}

		passsave=str(pass)
	notesel passsave
	notesave "system/user/pass.txt"
		usersave=str(user)
	notesel usersave
	notesave "system/user/name.txt"
		tenkisave=str(tenki)
	notesel tenki
	notesave "system/user/Weather.txt"
	notesel tenki_Name
	notesave "system/user/Weather_Name.txt"
		mailsave=str(mail)
	notesel mailsave
	notesave "system/user/mail.txt"
		netsave=str(net)
	notesel netsave
	notesave "system/user/Network.txt"
	setup="Yet Setup"
	notesel setup
	notesave "system/user/Setup.txt"
	
*setuposcomp
	width 1280,680,0,0
	clrobj 0

		repeat 15
x=cnt*20
	gmode 3,1280,680,x
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

x=0
i=0

if Language="Ja"{

mmplay 6

repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0
setease 680,200,ease_quartic_out

font "Yu Gothic UI Semilight",40
y = getease(i,60)
gmode 1,1280,680,x:pos 580,y+90:gcopy 4
pos 500,y-140 : mes "\nł܂!"

redraw 1
await 5
i=i+1
loop

font "Yu Gothic UI Semilight",20

objmode 2
objsize 115,45
pos 580,550
objimage 84,0,0,0,0,250,0
button goto "Jn",*setuposstart

stop

}

if Language="Eng"{

mmplay 6

repeat 90
redraw 0
color 255,255,255:boxf
color 0,0,0
setease 680,200,ease_quartic_out

font "Yu Gothic UI Semilight",40
y = getease(i,60)
gmode 1,1280,680,x:pos 580,y+90:gcopy 12
pos 480,y-140 : mes "\nSetup is complete!"

redraw 1
await 5
i=i+1
loop

font "Yu Gothic UI Semilight",20

objmode 2
objsize 115,45
pos 580,550
objimage 84,0,0,0,0,250,0
button goto "Start",*setuposstart

stop

}

stop
*setuposstart

clrobj
	
repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 2
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

onexit 0

color 255,255,255

font "Yu Gothic UI Semilight",20

pos 520,290
mes "Star LightJn邽߂̏..."

goto *osstartup
*setuposexit

clrobj

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 2
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

title "Star Light OS Vbg_EĂ܂..."
wait 10

end

*osstartup

	lr=30
	cr=2
//////////////////////VXeɊւf[^ǂݍ(炟w)///////////////////

	notesel Desktop_Wallpaper
	noteload "system/user/Wallpaper_Desk.txt"
	
	celload "system/theme/"+theme_set+"/Wallpaper/"+Desktop_Wallpaper+"",56

Bar_BOOT=480
gosub *OS_BOOT_BAR


	celload "system/theme/"+theme_set+"/Wallpaper/Latest OS.bmp",55

Bar_BOOT=Bar_BOOT+10
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/User - Main only.png",57

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Button - Next.bmp",58

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Button - Back.bmp",59

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Button - Close.bmp",60

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Button - info.bmp",61

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Err.png",63

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - info.png",64

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Logoff.png",65

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Power.png",66

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Reboot.png",67

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Wallpaper/Many lines.jpg",70

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Startbutton.png",71

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon&Button - Setting.png",78

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Setting - Back.bmp",79

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Setting - User.png",88;86Ƃ͎gpς

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Button - Edit.png",91

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Slidebutton - On.png",92

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Slidebutton - Off.png",93

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Clock.png",110

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Allow_MiniWindow.bmp",111

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Deny_MiniWindow.bmp",112

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	notesel Lock_Wallpaper
	noteload "system/user/Wallpaper_Lock.txt"

	celload "system/theme/"+theme_set+"/Wallpaper/"+Lock_Wallpaper+"",113

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Power_Shutdown.png",114

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/Shutdown_Wallpaper.jpg",115

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Power_Reboot.png",116

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/icon - Power_Sleep.png",117

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Error.bmp",200

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Warning.bmp",201

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Screen_Capture.bmp",202

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Check.bmp",203

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Info.bmp",204

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/Notification_icon/Notf_icon_Sync.bmp",205

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	celload "system/theme/"+theme_set+"/App_Open_Ani/App_Setting_Open_Ani.bmp",210

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/BSOD-!.bmp",212

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/Lock/Lock_Unlock.bmp",217

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/Lock/Lock_Lock.bmp",218

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/icon/OS_Warning.bmp",219

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/icon/OS_Warning.bmp",220

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

celload "system/theme/"+theme_set+"/User.bmp",221
celload "system/theme/"+theme_set+"/icon -cmd.png",300
celload "system/theme/"+theme_set+"/icon&Button - Twitter.png",301
Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	notesel pass
	noteload "system/user/pass.txt"

	notesel usersetup
	noteload "system/user/Setup - 2.txt"

	notesel usersetting1
	noteload "system/user/UserSetting - 1.txt";t@C̃ANZX

	notesel usersetting2
	noteload "system/user/UserSetting - 2.txt";lbg[N̐ڑ

	notesel usersetting3
	noteload "system/user/UserSetting - 3.txt";WindowsVXȅɃANZX

	notesel User_Notf_File_Name
	noteload "system/user/Notf_File.txt"

Bar_BOOT=Bar_BOOT+3
gosub *OS_BOOT_BAR

	notesel developermode
	noteload "system/user/Developer mode.txt"
Bar_BOOT=Bar_BOOT+1
gosub *OS_BOOT_BAR
	notesel Initialnotification
	noteload "system/user/Notification(Initial).txt"
Bar_BOOT=Bar_BOOT+1
gosub *OS_BOOT_BAR
	notesel username
	noteload "system/user/name.txt"
Bar_BOOT=Bar_BOOT+1
gosub *OS_BOOT_BAR
	notesel usermail
	noteload "system/user/mail.txt"
Bar_BOOT=Bar_BOOT+1
gosub *OS_BOOT_BAR
	notesel bootsys
	noteload "system/Boot.txt"

Bar_BOOT=Bar_BOOT+3
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Error.wav",1

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Click_Effect.wav",2

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Unlock.wav",3;bN

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_POP.wav",4

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/movie/Latest_OS_Easter_Egg.wmv",5

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/notification/"+User_Notf_File_Name+".wav",6

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Alarm.wav",9,1

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Lock.wav",10;bN


Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Dialog.wav",13

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Loading.wav",14,1

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_Screen_Capture_POP.wav",15

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_Screen_Capture.wav",16

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Silent/Latest_OS_Silent.wav",17

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Silent/Latest_OS_Silent_OFF.wav",18

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Complete.wav",19

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

	mmload "system/audio/ui/Latest_OS_Failed.wav",20

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

mmload "system/audio/ui/OS_Keyboard_Press.wav",21

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

mmload "system/audio/ui/OS_Space_Press.wav",22

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR

mmload "system/audio/ui/OS_Delete_Press.wav",23

Bar_BOOT=Bar_BOOT+5
gosub *OS_BOOT_BAR
//////////////////////VXeɊւf[^ǂݍ(܂łw)///////////////////
	
if username="" {username="No Name"};Oo^ĂȂꍇ̏

	onerror goto *OS_HSP_Error_Blue

*OS_StartUP_Data_Check

if bootsys="0"{
bootsys="1":notesel bootsys:notesave "system/Boot.txt":goto *OS_Setup_Data_Check}else{

buffer 999, 1280,680
CaptureActiveWindow 1 ;ʂLv`

gsel 0,1
	
	clrobj

ZOOM_TIME=990		// g傷鎞(ms)


	gsel 0,1

	clrobj
	// ԃJEgp
	nTime = 100

	// C[1O֐ݒ
	setease 1.0, 1.8 , ease_quad_in	// ^Cvς邱ƂŌʂς

buffer 210,1280,680;ݒNʂ̓zł

color 255,255,255:boxf

color 
font "Yu Gothic UI Semilight",35
pos 350,50 : mes "Star LightVbg_E܂ł"

//ݒuStar Light OS ̏v//
;color 240,240,240:boxf 150,170,380,260
gmode 2,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,203
mes "ʏN"
//ݒuStar Light OS ̏v܂//

//ݒu[U[v//
;color 240,240,240:boxf 420,170,650,260
gmode 2,1280,600,256
pos 440,195
gcopy 300
color 
font"Yu Gothic UI Semilight",16
pos 500,203
mes "R}hvvg"
//ݒu[U[v܂//

//ݒuVC\T[rXv//
;color 240,240,240:boxf 150,320,380,410
gmode 2,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,353
mes "Re-install"
//ݒuVC\T[rXv܂//

//ݒuUIJX^}CYv//
;color 240,240,240:boxf 150,470,380,560
gmode 2,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,503
mes "UIJX^}CY"
//ݒuUIJX^}CYv܂//
;܂ŁI

gsel 0,1

repeat 11
	redraw 0
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME
	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 999, 0, 0, GX, GY

x=cnt*25
	gmode 3,1280,680,x
	pos 0,0
	gcopy 210

await 12

redraw 1

	await 0
loop

	gmode 3,1280,680,256
	pos 0,0
	gcopy 210


color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

if Latest_OS_Edition="Service_000" {
Notification_Mode="gosub"

Notification_From="ݒ"
Notification_Title="F؂Kv"
Notification_Info="Star Light OS̃[U[F؂sKv܂\nuF؁v烆[U[F؂Ă"

Notf_Sound=6

Notf_icon_Number=201

gosub *OS_Notification
}
goto *OS_Setting_Error_Main

}
*OS_Setting_Error_Main

	onclick gosub *OS_Click_Error_Menu

repeat;NbN҂̏Iȉ
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}

redraw 0

color 255,255,255 : boxf



color 
font "Yu Gothic UI Semilight",35
pos 350,50 : mes "Star LightVbg_E܂ł"

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

//ݒuStar Light OS ̏v//
;color 240,240,240:boxf 150,170,380,260
gmode 2,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,203
mes "ʏN"
//ݒuStar Light OS ̏v܂//

//ݒu[U[v//
;color 240,240,240:boxf 420,170,650,260
gmode 2,1280,600,256
pos 440,195
gcopy 300
color 
font"Yu Gothic UI Semilight",16
pos 500,203
mes "R}hvvg"
//ݒu[U[v܂//

//ݒuVC\T[rXv//
;color 240,240,240:boxf 150,320,380,410
gmode 2,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,353
mes "Re-install"
//ݒuVC\T[rXv܂//

//ݒuUIJX^}CYv//
;color 240,240,240:boxf 150,470,380,560
gmode 2,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,503
mes "G[`FbN"
//ݒuUIJX^}CYv܂//


;}EX̏ꏊ擾Ĉ̏𖞂ĂȂɂ삷݂Ȃ

	if 150<= mousex & 380>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 150,170,380,260
color 255,255,255
gmode 4,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,198
mes "ʏN"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,217
mes "Star LightʏN܂"

}

	if 420<= mousex & 650>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 420,170,650,260

color 255,255,255
gmode 4,1280,600,256
pos 440,195
gcopy 300
color 
font"Yu Gothic UI Semilight",16
pos 500,198
mes "R}hvvg"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 500,217
mes "R}hvvgJ܂"

}

	if 150<= mousex & 380>= mousex and 320<=mousey & 410>= mousey {
color 240,240,240:boxf 150,320,380,410

color 255,255,255
gmode 4,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,348
mes "Re-install"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,368
mes "Star LightăCXg[܂"

}

	if 150<= mousex & 380>= mousex and 470<=mousey & 560>= mousey {
color 240,240,240:boxf 150,470,380,560
color 255,255,255
gmode 4,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,498
mes "G[`FbN"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,518
mes "G[`FbN܂"

}

redraw 1
wait 1
loop

*OS_Click_Error_Menu;NbN
if Silent_Mode="Sound" {mmplay 2}else{
}

	if 150<= mousex & 380>= mousex and 170<=mousey & 260>= mousey {

onclick 0

goto *OS_Setup_Data_Check
}

	if 420<= mousex & 650>= mousex and 170<=mousey & 260>= mousey {

onclick 0

#include "Star_light_cmd.hsp"
}

	if 150<= mousex & 380>= mousex and 320<=mousey & 410>= mousey {
dialog "Re-install\n Prosess"
}

	if 150<= mousex & 380>= mousex and 470<=mousey & 560>= mousey {
goto *OS_StartUP_Error_Check
}

return
*OS_StartUP_Error_Check
cls 4
color 255,255,255
font "",30
pos 30,40
mes "Star Light OS Error Check"
font "",20
pos 80,200
mes "Star Light OS̋NWG[у[U[f[^̃G[`FbNĂ܂...
wait 300
color 255,0,0
pos 80,300
mes "tFCNł["
wait 100
objsize 100,40
pos 520,450:button goto "˂˃R",*OS_StartUP_Data_Check
stop
*OS_Startup_Mode_Change
cls 4
color 255,255,255:font "CI",20:pos 300,240:mes "Star Light OSSafemodeŋN܂H\nStar Light OS͍ċN܂\n\nSafemodeŋNƁADebugmodeKp܂\n\n":objsize 100,40:pos 420,450:objimage 76,0,0,0,0,250,0:button goto"OK",*OS_Boot_SafeMode_Set:pos 620,450:button goto "Cancel",*OS_StartUP_Data_Check:stop

*OS_Boot_SafeMode_Set
cls 4
color 255,255,255
mes "Z[t[hł...
Bootmode="safe"
mes "ċNł..."
wait 100
goto *first

*OS_Setup_Data_Check
if usersetup="Not Complete"{goto *OS_Setup_SYSTEM}else{goto *OS_Boot_OK}
*OS_Setup_SYSTEM

clrobj 0

repeat 32
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	pos 0,10
	color 255,255,255
	wait 1
	loop

;uStar Lightւ悤vAnimation[Start]
R=255
G=255
B=255
i=0
repeat 220
setease 460,300,ease_quartic_out
y = getease(i,60)	; C[WOl̎擾()

redraw 0

color 255,255,255:boxf

if R>0 and G>0 and B>0 {
R=R-17
G=G-17
B=B-17
}else{
R=0
G=0
B=0
}
color R,G,B

	font "Yu Gothic UI",40,1
	pos -1000
	mes "Star Lightւ悤"
pos ginfo_winx-ginfo_mesx>>1,y:mes "Star Lightւ悤"
wait 1

font "Yu Gothic UI",18
color 80,80,80
pos 10,10
mes "T[rX̎擾~"

redraw 1

i=i+1

await 0

loop
;uStar Lightւ悤vAnimation[End]

;uStar Lightւ悤vSecond_Animation[Start]
R=0
G=0
B=0

repeat 50

redraw 0

color 255,255,255:boxf

if R<255 and G<255 and B<255 {
R=cnt*17
G=cnt*17
B=cnt*17
}else{
R=255
G=255
B=255
}
color R,G,B

	font "Yu Gothic UI",40,1
	pos -1000
	mes "Star Lightւ悤"
pos ginfo_winx-ginfo_mesx>>1,300:mes "Star Lightւ悤"
wait 1

font "Yu Gothic UI",18
color 80,80,80
pos 10,10
mes "T[rX̎擾~"

redraw 1


await 0

loop
;uStar Lightւ悤vSecond_Animation[End]

;uptH[}XݒvAnimation[Start]
R=255
G=255
B=255
i=0
repeat 220
setease 150,50,ease_quartic_out
x = getease(i,60)	; C[WOl̎擾()

redraw 0

color 255,255,255:boxf

if R>0 and G>0 and B>0 {
R=R-17
G=G-17
B=B-17
}else{
R=0
G=0
B=0
}
color R,G,B

	font "Yu Gothic UI",40,
pos x,80:mes "ptH[}Xݒ"

setease 150,50,ease_quartic_out
x2 = getease(i,60)	; C[WOl̎擾()
pos x2,150
font "Yu Gothic UI",20
mes "gpPC̃XybNɍœKȃptH[}Xݒs܂"

wait 1

font "Yu Gothic UI",18
color 80,80,80
pos 10,10
mes "T[rX̎擾~"

redraw 1

i=i+1

await 0

loop
;uptH[}XݒvAnimation[End]
color 255,255,255:boxf

color 60,60,60
font "Yu Gothic UI",40
pos 50,50
mes "ptH[}Xݒ"


font "Yu Gothic UI",20
pos 50,120
mes "gp̃Rs[^[̐\ɍ킹ăptH[}X̐ݒs܂B\n\n܂łĂȂ5bɃbNʂɍs"

wait 500

	usersetup="Yet Complete"
	notesel usersetup
	notesave "system/user/Setup - 2.txt"

goto *OS_Boot_OK

*OS_Boot_OK
	clrobj 0
onclick 0

buffer 115,1280,680
gmode 1,1280,680
pos 0,0
gcopy 113

gblur 2
color
 gmode 3,,,170
 boxfa 0,0,1280,680

gsel 0,1

#define GX			1280		// 摜XTCY
#define GY			680			// 摜YTCY
#define LOOP_TIME	(1800 / 60)	// 1[v̎(ms)

ZOOM_TIME=1400		// g傷鎞(ms)

	nTime = 200

onclick goto *OSLogin2

	// C[1O֐ݒ
	setease 1.4, 1.0, ease_quartic_out	// ^Cvς邱ƂŌʂς

repeat 60
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME

	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680

redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 113, 0, 0, GX, GY

	color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,160
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,280
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"

font "Yu Gothic UI",18
pos 10,10
mes "lbg[NT[rXpł܂"

await 0

redraw 1

getkey flag, 13;EnterL[
if flag=1 : goto *OSlogin2

await 1
loop

	gsel 0,1

*OSloginTaiki
Lock_Massage_Time=0
Mes_Lock=0
repeat
redraw 0
gcopy 3,1280,680,256
pos 0,0
gcopy 113

if Lock_Massage_Time>30{if Mes_Lock=0{
Mes_Lock=1:i=0:repeat 100

redraw 0
pos 0,0
	gcopy 113
	
	color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,160
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,280
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"

setease 620,580,ease_quartic_out
y = getease(i,60)	; C[WOl̎擾()

color 255,255,255

	font "Yu Gothic UI",18,1
	pos -1000
	mes "NbN邩EnterL[ăbN"
font "Yu Gothic UI",18,1
color 255,255,255
pos ginfo_winx-ginfo_mesx>>1,y:mes "NbN邩EnterL[ăbN"
await 12

font "Yu Gothic UI",18
pos 10,10
mes "lbg[NT[rXpł܂"

redraw 1

i=i+1

getkey flag, 13;EnterL[
if flag=1 : goto *OSlogin2

await 0

loop

}else{
	font "Yu Gothic UI",18,1
	pos -1000
	mes "NbN邩EnterL[ăbN"
font "Yu Gothic UI",18,1
color 255,255,255
pos ginfo_winx-ginfo_mesx>>1,y:mes "NbN邩EnterL[ăbN"

font "Yu Gothic UI",18
pos 10,10
mes "lbg[NT[rXpł܂"

}
}
color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,160
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,280
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"

font "Yu Gothic UI",18
pos 10,10
mes "lbg[NT[rXpł܂"

redraw 1

repeat 10
getkey flag, 13;EnterL[
if flag=1 : goto *OSlogin2
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop
Lock_Massage_Time=Lock_Massage_Time+1
loop

*OSlogin2;̃Aj[Vd
	Hant=0
	onclick 0

if pass ="" {goto *OS_Login_Go}
i=0
	// ԃJEgp
	nTime = 10
ZOOM_TIME=1200		// g傷鎞(ms)

repeat 40

	setease 1.0, 1.2, ease_quartic_out	// ^Cvς邱ƂŌʂς

	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME
	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680
	redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 115, 0, 0, GX, GY

   setease 160,100,ease_quartic_out
y = getease(i,50)	; C[WOl̎擾()

	color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,y
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

setease 280,220,ease_quartic_out
y = getease(i,40)	; C[WOl̎擾()

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,y
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"

color cnt*6,cnt*6,cnt*6
font "Yu Gothic UI Semilight",25
Lock_mes="pX[h͂ăbN"
pos -1000
mes Lock_mes
pos ginfo_winx-ginfo_mesx>>1,300
mes Lock_mes

font "Yu Gothic UI Light",17
pos -1000
mes "pX[h͂łȂꍇ[Tab]L[Ă
pos ginfo_winx-ginfo_mesx>>1,610
mes "pX[h͂łȂꍇ[Tab]L[Ă

await 0
 
	redraw 1

await 1

i=i+1
	
loop

*OS_Login_Pass_Try
clrobj 
color 255,255,255
font "Yu Gothic UI Light",25
objmode 2
font "CI",30
Loginpass = ""
color 255,255,255
pos 480,350
input Loginpass, 300,50,16

	hInput = objinfo( stat, 2 )
	UpdatePasswordInput hInput

goto *OS_Login_Pass_Wait


*OS_Login_Pass_Wait

repeat

getkey sk,13
if sk {if pass = Loginpass {mmplay 21:clrobj:goto *OS_Login_Pass_Comp}else{

i=0
Lock_mes="͂pX[h܂"
if Silent_Mode="Sound" {mmplay 20}else{}
repeat 65
sx = 1.2 * GX	// sx = 0 ~ 1280
	sy = 1.2 * GY	// sy = 0 ~ 680
	redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 115, 0, 0, GX, GY;1.1xɊg債bNʔwi


;v
	color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,100
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,220
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
;v ܂

color 255,255,255
font "Yu Gothic UI Semilight",25
pos -1000:mes Lock_mes

setease  ginfo_winx-ginfo_mesx>>1,500,ease_shake_in
x = getease(i,50)
pos x,300
mes Lock_mes

color 255,255,255
font "Yu Gothic UI Light",17
pos -1000
mes "pX[h͂łȂꍇ[Tab]L[Ă
pos ginfo_winx-ginfo_mesx>>1,610
mes "pX[h͂łȂꍇ[Tab]L[Ă

await 0

redraw 1
	i=i+2
await 1

loop
	
}}
wait 1

sx = 1.2 * GX	// sx = 0 ~ 1280
	sy = 1.2 * GY	// sy = 0 ~ 680
	redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 115, 0, 0, GX, GY;1.1xɊg債bNʔwi


;v
	color 255,255,255
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,100
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,220
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
;v ܂

font "Yu Gothic UI Semilight",25
pos -1000
mes Lock_mes
pos ginfo_winx-ginfo_mesx>>1,300
mes Lock_mes

font "Yu Gothic UI Light",17
pos -1000
mes "pX[h͂łȂꍇ[Tab]L[Ă
pos ginfo_winx-ginfo_mesx>>1,610
mes "pX[h͂łȂꍇ[Tab]L[Ă

redraw 1

loop

*OS_Login_Pass_Comp

*OS_Login_Go

;@\(Aj[V)p~ł͋󗓂ł
	
*loginanimation
goto *OS_Desktop_Main_Wallpaper_Animation
*OS_Unexpected_Error
gsel 0,1
font "CI",15
	color 255,0,0:boxf
color 255,255,255
pos 30,30
mes "G[߁AStar Light OS~܂B\n\nÉ~{^āAStar Light OSIāAStar Light OSċNĂB\n\nċNĂȂꍇ́AStar Light OS̃vOɈُ킪邩A[U[уVXeݒ肪jĂ\܂B\n\ñG[milaiɂ₢킹B\n\n\n\n\n\n\nThe Star Light OS has stopped because of an error.\n\nPress the X button in the upper right to kill the Star Light OS and restart the Star Light .\n\nIf the reboot does not heal, the Star Light program may be unhealthy or the user and system settings might be corrupted.\n\nContact to milai this error.\n\n\n"
mes "   G[e(Error info) @ : "+Error_Code_Mes+"\n\n@G[R[h(Error code) : "+Error_Code+" , ("+Error_Code_Back+")"
repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop
*progress_wait_startup
	
		redraw 0
		color :boxf 1100,500,240,180
	cx=cos(deg2rad(arg))*lr+650
	cy=sin(deg2rad(arg))*lr+320
	color 0,255,255:circle cx-cr,cy-cr,cx+cr,cy+cr,1
	
	redraw 1

	if (fflag){
		count++
		if (count==19):fflag=0
	}
	else{
		count--
		if (count==1):count=0:fflag=1
	}
	arg +=count
	arg \=360

	return

*OS_Desktop_Main_Wallpaper_Animation
x2=25
onkey gosub *OS_Key_Check
if Silent_Mode="Sound"{mmplay 3}else{}

clrobj 0
onclick 0
buffer 199,1280,680
if tskb_set = 1 {

gmode 1,1280,680
pos 0,0
	gcopy 56
 color
gmode 3,,,128
boxfa  0,45,1280,0
gmode 2,1280,680,256
pos 0,0
gcopy 71
pos 1127,0
	gmode 2,1280,680,256
	gcopy 66

	pos 1200,10
color 255,255,255
font "Yu Gothic UI Light",19
	mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
}else:if tskb_set = 2 {
	gmode 1,1280,680
pos 0,0
	gcopy 56
 color
gmode 3,,,128
boxfa 0,1235,1280,635
gmode 2,1280,680,256
pos 0,635
gcopy 71
pos 1127,635
	gmode 2,1280,680,256
	gcopy 66

	pos 1200,644
color 255,255,255
font "Yu Gothic UI Light",19
	mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
}
	
gsel 0,1

	ZOOM_TIME=990		// g傷鎞(ms)



ZOOM_TIME=1200		// g傷鎞(ms)

	nTime = 200

	// C[1O֐ݒ
	setease 2.0, 1.0, ease_quartic_out	// ^Cvς邱ƂŌʂς

repeat 50
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME

	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680

redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 199, 0, 0, GX, GY

redraw 1

	await 17
loop
	

	onclick gosub *OS_Click_Desktop


if News_Status="No" {

Notification_Click_Mode="goto"
Notification_Click_To=""

Notification_Mode="gosub"

Notification_From="News"
Notification_Title="j[X擾s"
Notification_Info="j[X̎擾Ɏs܂\nlbg[N̐ڑɖ肪ȂmFĂ"

Notf_Sound=6

Notf_icon_Number=200

gosub *OS_Notification

}

if Latest_OS_Edition="Service_000" {

Notification_Click_Mode="goto"
Notification_Click_To="*OS_Setting_Home"

Notification_From="[U[F"
Notification_Title="[U[F؂"
Notification_Info="Star Light ̃[U[F؂Ă܂\n[VXeݒ]烆[U[F؂sĂ"

Notf_Sound=6

Notf_icon_Number=201

goto *OS_Notification

}

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Desktop_icon_on_Desktop
clrobj 0
	onclick 0

if tskb_set = 1{
		repeat 10
x=cnt*26
	gmode 3,1280,680,x

	gcopy 56
	redraw 1
	pos 0,0
	color 255,255,255
	await 1
	loop

 color
gmode 3,,,128
boxfa  0,45,1280,0

gmode 2,1280,680,256
pos 0,0
gcopy 71

pos 1127,0
	gmode 2,1280,680,256
	gcopy 66
}else:if tskb_set = 2{
		repeat 10
x=cnt*26
	gmode 3,1280,680,x

	gcopy 56
	redraw 1
	pos 0,0
	color 255,255,255
	await 1
	loop

 color
gmode 3,,,128
boxfa 0,1235,1280,635

gmode 2,1280,680,256
pos 0,635
gcopy 71

pos 1127,635
	gmode 2,1280,680,256
	gcopy 66
}
	onclick gosub *OS_Click_Desktop

pos 1200,10
color 255,255,255
font "Yu Gothic UI Light",19
	mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
return

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Desktop_icon_on_Desktop_App_Close
	if tskb_set = 1 {
Run_App_Name="z["
	onclick gosub *OS_Click_Desktop
clrobj

ZOOM_TIME=990		// g傷鎞(ms)

Desktop_Wallpaper_Animation=255

	nTime = 480
	// C[1O֐ݒ
	setease 1.8, 1.0, ease_quad_inout	// ^Cvς邱ƂŌʂς
repeat 20
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME

	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680
	redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 56, 0, 0, GX, GY

gmode 3,1280,680,Desktop_Wallpaper_Animation : pos 0,0 : gcopy 3
 color
gmode 3,,,128
boxfa  0,45,1280,0

gmode 4,1280,680,256
pos 0,0
gcopy 71

pos 1127,0
	gmode 2,1280,680,256
	gcopy 66
	
	await 12
	redraw 1
	
	await 0
	Desktop_Wallpaper_Animation=Desktop_Wallpaper_Animation-25
loop

gmode 3,1280,680,256 : pos 0,0 : gcopy 56

 color
gmode 3,,,128
boxfa  0,45,1280,0

gmode 2,1280,680,256
pos 0,0
gcopy 71

pos 1127,0
	gmode 2,1280,680,256
	gcopy 66
	
	pos 1200,10
color 255,255,255
font "Yu Gothic UI Light",19
	mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop
}else:if tskb_set = 2 {
	Run_App_Name="z["
	onclick gosub *OS_Click_Desktop
clrobj

ZOOM_TIME=990		// g傷鎞(ms)

Desktop_Wallpaper_Animation=255

	nTime = 480
	// C[1O֐ݒ
	setease 1.8, 1.0, ease_quad_inout	// ^Cvς邱ƂŌʂς
repeat 20
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME

	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680
	redraw 0

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 56, 0, 0, GX, GY

gmode 3,1280,680,Desktop_Wallpaper_Animation : pos 0,0 : gcopy 3
 color
gmode 3,,,128
boxfa 0,1235,1280,635

gmode 4,1280,680,256
pos 0,635
gcopy 71

pos 1127,635
	gmode 2,1280,680,256
	gcopy 66
	
	await 12
	redraw 1
	
	await 0
	Desktop_Wallpaper_Animation=Desktop_Wallpaper_Animation-25
loop

gmode 3,1280,680,256 : pos 0,0 : gcopy 56

 color
gmode 3,,,128
boxfa 0,1235,1280,635

gmode 2,1280,680,256
pos 0,635
gcopy 71

pos 1127,635
	gmode 2,1280,680,256
	gcopy 66
	
repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

}

*OS_Start_Menu_Animation
redraw 0
	if News_Number=7{News_Number=0}else{News_Number=News_Number+1}
	
onclick gosub *OS_Click_Start_Menu
	clrobj 0

 gblur 4
clrobj 
    pos 0,635
objsize 45,45
    objimage 71,0,0,0,0,0,0
    button "",*OS_Desktop_Main


 color
 gmode 3,,,120
 boxfa 0,0,1280,680
color 255,255,255
font "Yu Gothic UI Light",40
pos 90,60 : mes "Star Light Function Menu"

font "Yu Gothic UI Semilight",40
pos 1000,60

mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

color 255,255,255
	_NewsID = News_Number ; őV܂
	NewsID = ( 3 + _NewsID * 2 )
	font "Yu Gothic UI",18,1
	pos 510,80
	mes "Today E "
	font "Yu Gothic UI Semilight",18
	pos 575,80
	if News_Status="No" {font "Yu Gothic UI",18,1 :color 150,50,50:mes "j[X擾s - lbg[NmFɍċNKv"}else{mes ""+ strmid( afpbbnews_news_title.NewsID, 0, ( strlen( afpbbnews_news_title.NewsID ) - 2 ))}
	font "Yu Gothic UI Semilight",10
	color 255,255,255
	pos 525,110
	mes "Provide by Yahoo!News"

pos 130,320
font "Yu Gothic UI Semilight",18
mes "VXeݒ"
pos 120,180
	gmode 2,1280,680,256
	gcopy 78

	pos 280,320
font "Yu Gothic UI Semilight",18
mes "    Twitter"
pos 270,180
	gmode 2,1280,680,256
	gcopy 301
	
clrobj 

if tskb_set = 1 {
gmode 2,1280,680,256
pos 0,0
gcopy 71
}else:if tskb_set = 2 {
	gmode 2,1280,680,256
pos 0,635
gcopy 71
}

redraw 1

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

stop
*OS_Power_Menu_Open;IIvV̔wiڂ

buffer 999, 1280,680
CaptureActiveWindow 1 ;ʂLv`

gsel 0,1

buffer 115,1280,680
gmode 1,1280,680

redraw 0

pos 0,0
gcopy 999

gblur 2
color
 gmode 3,,,170
 boxfa 0,0,1280,680

redraw 1

gsel 0,1

onkey 0
	
			repeat 18
x=cnt*20
	gmode 3,1280,680,x
	gcopy 115
	redraw 1
	pos 0,0
	color 255,255,255
	await 1
	loop
	
	goto *OS_Power_Menu_2

*OS_Power_Menu_2;IIvṼAj[V

onclick 0

i=0
color 255,255,255

repeat 70
redraw 0
pos 0,0
gcopy 115

setease 680,150,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
font "Yu Gothic UI Semilight",18
pos 579,y+100:mes "Star LightI"

setease 680,350,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
pos 615,y+100:mes "ċN"

setease 680,560,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

redraw 1
await 1
i=i+1
loop

onclick gosub *OS_Click_Power_1

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Click_Power_1;IIvV\̃}EXNbN̓ȂǂȂ
if Silent_Mode="Sound" {mmplay 2}else{}

if 590<= mousex & 690>= mousex and 150<=mousey & 250>= mousey {goto *OS_Power_Shutdown}else:if 590<= mousex & 690>= mousex and 350<=mousey & 450>= mousey {goto *OS_Power_Reboot}else:if 590<= mousex & 690>= mousex and 560<=mousey & 610>= mousey {goto *OS_Power_Sleep}else{i=0
color 255,255,255
onclick 0
repeat 70
redraw 0
pos 0,0
gcopy 115

setease 150,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
font "Yu Gothic UI Semilight",18
pos 579,y+100:mes "Star LightI"

setease 350,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
pos 615,y+100:mes "ċN"

setease 560,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

redraw 1
await 1
i=i+1
loop

onkey 1

goto *OS_Desktop_icon_on_Desktop}
*OS_Click_Power_First;Vbg_EmF̍ۂɃ}EXNbNƂ̂ȂǂȂ
if Silent_Mode="Sound" {mmplay 2}else{}
		if 590<= mousex & 690>= mousex and 300<=mousey & 400>= mousey {goto *OS_Power_Menu_First_Shutdown}else{
			
onclick 0

x=0
i=0
color 255,255,255

repeat 70
redraw 0
pos 0,0
gcopy 115

setease 680,350,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
font "Yu Gothic UI Semilight",18
pos 615,y+100:mes "ċN"

setease 300,150,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
pos 595,y+100:mes "Star LightI"

setease 680,560,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

setease 500,680,ease_quartic_out
y = getease(i,60)

pos -1000
font "Yu Gothic UI Semilight",20
mes "ēxNbNďI"

pos ginfo_winx-ginfo_mesx>>1,y
mes "ēxNbNďI"

redraw 1
await 2
i=i+1
loop

onclick gosub *OS_Click_Power_1

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop}

return

*OS_Desktop_Main

gosub *OS_Desktop_icon_on_Desktop
repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Power_Menu_First_Shutdown;Vbg_E̓w

repeat 32
x=cnt*10
redraw 0
	gmode 3,1280,680,x
	pos 0,0
	gcopy 2
	gmode 2,1280,680:pos 590,300:gcopy 114
	color 255,255,255
	
pos -1000
font "Yu Gothic UI Semilight",18
mes "Star LightI"

pos ginfo_winx-ginfo_mesx>>1,400
mes "Star LightI"

	redraw 1
	wait 2
	loop
	
OS_Power=1
goto *OS_Power_Start

*OS_Power_Menu_First_Restart;ċN̓w

repeat 32
x=cnt*10
redraw 0
	gmode 3,1280,680,x
	pos 0,0
	gcopy 2
	gmode 2,1280,680:pos 590,300:gcopy 116
	color 255,255,255
	
pos -1000
font "Yu Gothic UI Semilight",18
mes "Star LightċN"

pos ginfo_winx-ginfo_mesx>>1,400
mes "Star LightċN"

	redraw 1
	wait 2
	loop
	
OS_Power=2
goto *OS_Power_Start

*OS_Power_Shutdown;Vbg_EmF̃Aj[V
onclick 0

clrobj

x=0
i=0
color 255,255,255

repeat 70
redraw 0
pos 0,0
gcopy 115

setease 350,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
font "Yu Gothic UI Semilight",18
pos 615,y+100:mes "ċN"

setease 150,300,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
pos 595,y+100:mes "Star LightI"

setease 560,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

setease 680,500,ease_quartic_out
y = getease(i,60)
pos -1000
font "Yu Gothic UI Semilight",20
mes "ēxNbNďI"

pos ginfo_winx-ginfo_mesx>>1,y
mes "ēxNbNďI"

redraw 1
await 2
i=i+1
loop


onclick gosub *OS_Click_Power_First

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Power_Reboot;ċNmFʂւ̃Aj[V

onclick 0

clrobj

x=0
i=0
color 255,255,255

repeat 70
redraw 0
pos 0,0
gcopy 115

setease 350,300,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
font "Yu Gothic UI Semilight",18
pos 615,y+100:mes "ċN"

setease 150,-123,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
pos 595,y+100:mes "Star LightI"

setease 560,680,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

setease 680,500,ease_quartic_out
y = getease(i,60)
pos -1000
font "Yu Gothic UI Semilight",20
mes "ēxNbNčċN"

pos ginfo_winx-ginfo_mesx>>1,y
mes "ēxNbNčċN"

redraw 1
await 2
i=i+1
loop

onclick gosub *OS_Click_Power_Second

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Click_Power_Second;ċNmF̍ۂɃ}EXNbNƂ̂ȂǂȂ
		if 590<= mousex & 690>= mousex and 300<=mousey & 400>= mousey {goto *OS_Power_Menu_First_Restart}else{

if Silent_Mode="Sound" {mmplay 2}else{}

onclick 0

x=0
i=0
color 255,255,255

repeat 70
redraw 0
pos 0,0
gcopy 115

setease 300,350,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 116
font "Yu Gothic UI Semilight",18
pos 615,y+100:mes "ċN"

setease -123,150,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 590,y:gcopy 114
pos 595,y+100:mes "Star LightI"

setease 680,560,ease_quartic_out
y = getease(i,60)
gmode 2,1280,680:pos 617,y:gcopy 117
pos 615,y+55:mes "X[v"

setease 500,680,ease_quartic_out
y = getease(i,60)
pos -1000
font "Yu Gothic UI Semilight",20
mes "ēxNbNčċN"

pos ginfo_winx-ginfo_mesx>>1,y
mes "ēxNbNčċN"
redraw 1
await 3
i=i+1
loop

onclick gosub *OS_Click_Power_1

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop}

return

*OS_Power_Sleep//̓X[vp̃x(LEցE`)܁[ʐ^ÂɂăNbNꂽ烍bNʂɈړ邾w
	clrobj

if Silent_Mode="Sound" {mmplay 10}else{}
x=0
			repeat 8
x=x+32
	gmode 3,1280,680,x

	gcopy 2
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

goto *OS_Sleep


*OS_Power_Start
//////OS_Power1Vbg_EAOS_Power2ċNƂȂĂ܂//////

//Vbg_E̓uv
if OS_Power=1 {
clrobj
onclick 0

/////////////////////////[U[f[^̃Z[u(ݒύX悤)//////////////////////////

title "Saving user data..."

	notesel username
	notesave "system/user/name.txt"
	notesel pass
	notesave "system/user/pass.txt"
	notesel usersetting1
	notesave "system/user/UserSetting - 1.txt"
	notesel usersetting2
	notesave "system/user/UserSetting - 2.txt"
	notesel usersetting3
	notesave "system/user/UserSetting - 3.txt"
	notesel developermode
	notesave "system/user/Developer mode.txt"
	bootsys="0":notesel bootsys:notesave "system/Boot.txt"

	exist "News"
	if strsize = -1 {}else{delete "News"}

	title "Shutting down Star Light..."
			repeat 86
x=cnt*3
redraw 0
	gmode 3,1280,680,x
pos 0,0
	gcopy 2
	redraw 1
	wait 0
	loop
end
}//Vbg_E̓u܂Łv

//ċN̓uv
if OS_Power=2 {
clrobj
onclick 0

	
/////////////////////////[U[f[^̃Z[u(ݒύX悤)/////////////////////////////

title "Saving user data..."

	notesel username
	notesave "system/user/name.txt"
	notesel pass
	notesave "system/user/pass.txt"
	notesel usersetting1
	notesave "system/user/UserSetting - 1.txt"
	notesel usersetting2
	notesave "system/user/UserSetting - 2.txt"
	notesel usersetting3
	notesave "system/user/UserSetting - 3.txt"
	notesel developermode
	notesave "system/user/Developer mode.txt"
bootsys="0":notesel bootsys:notesave "system/Boot.txt"

	exist "News"
	if strsize = -1 {}else{delete "News"}

	title "Restarting Star Light..."

			repeat 100
x=cnt*3
	gmode 3,1280,680,x

	gcopy 2
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

goto *first
}//ċN̓u܂Łv
*OS_Click_Desktop
	
	if tskb_set = 1 {
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 1127<= mousex & 1170>= mousex and 0<=mousey & 45>= mousey {goto *OS_Power_Menu_Open}
	if 0<= mousex & 45>= mousex and 0<=mousey & 45>= mousey {goto *OS_Start_Menu_Animation}
}else:if tskb_set = 2 {
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 1127<= mousex & 1170>= mousex and 635<=mousey & 680>= mousey {goto *OS_Power_Menu_Open}
	if 0<= mousex & 45>= mousex and 635<=mousey & 680>= mousey {goto *OS_Start_Menu_Animation}
}
return
*OS_Click_Power_Menu
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 1127<= mousex & 1170>= mousex and 635<=mousey & 680>= mousey {goto *OS_Desktop_Main}
return
*OS_Click_Start_Menu
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 120<= mousex & 248>= mousex and 180<=mousey & 308>= mousey {goto *OS_Setting_Home}
	if 270<= mousex & 398>= mousex and 180<=mousey & 308>= mousey {goto *Twitter}
	if tskb_set = 1 {
	if 0<= mousex & 45>= mousex and 0<=mousey & 45>= mousey {goto *OS_Desktop_Main}
}else:if tskb_set = 2 {
	if 0<= mousex & 45>= mousex and 635<=mousey & 680>= mousey {goto *OS_Desktop_Main}
}
return

*OS_Setting_Home
	
buffer 999, 1280,680
CaptureActiveWindow 1 ;ʂLv`

gsel 0,1

Run_App_Name="VXeݒ"
	
	clrobj

ZOOM_TIME=990		// g傷鎞(ms)


	gsel 0,1

	clrobj
	// ԃJEgp
	nTime = 100

	// C[1O֐ݒ
	setease 1.0, 1.8 , ease_quad_in	// ^Cvς邱ƂŌʂς

buffer 981,1280,680;ݒNʂ̓zł

color 255,255,255:boxf

color 
font "Yu Gothic UI Semilight",35
pos 600,50 : mes "ݒ"

gmode 3,1280,680,256:pos 10,10:gcopy 79

//ݒuStar Light ̏v//
;color 240,240,240:boxf 150,170,380,260
gmode 2,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,203
mes "Star Light ̏"
//ݒuStar Light ̏v܂//

//ݒu[U[v//
;color 240,240,240:boxf 420,170,650,260
gmode 2,1280,600,256
pos 440,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,203
mes "[U["
//ݒu[U[v܂//

//ݒuF؁v//
;color 240,240,240:boxf 690,170,920,260
gmode 2,1280,600,256
pos 710,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,203
mes "F"
//ݒuF؁v܂//

//ݒuZLeBv//
;color 240,240,240:boxf 960,170,1190,260
gmode 2,1280,600,256
pos 980,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,203
mes "ZLeB"
//ݒuZLeBv܂//

//ݒuVC\T[rXv//
;color 240,240,240:boxf 150,320,380,410
gmode 2,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,353
mes "VC\T[rX"
//ݒuVC\T[rXv܂//

//ݒuLuxelav//
;color 240,240,240:boxf 420,320,650,410
gmode 2,1280,600,256
pos 440,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,353
mes "Luxela"
//ݒuLuxelav܂//

//ݒu / Languagev//
;color 240,240,240:boxf 690,320,920,410
gmode 2,1280,600,256
pos 710,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,353
mes " / Language"
//ݒu / Languagev܂//

//ݒuT|[gv//
;color 240,240,240:boxf 960,320,1190,410
gmode 2,1280,600,256
pos 980,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,353
mes "T|[g"
//ݒuT|[gv܂//

//ݒuUIJX^}CYv//
;color 240,240,240:boxf 150,470,380,560
gmode 2,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,503
mes "UIJX^}CY"
//ݒuUIJX^}CYv܂//

//ݒuXVv//
;color 240,240,240:boxf 420,470,650,560
gmode 2,1280,600,256
pos 440,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,503
mes "XV"
//ݒuXVv܂//

//ݒuڑv//
;color 240,240,240:boxf 690,470,920,560
gmode 2,1280,600,256
pos 710,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,503
mes "ڑ"
//ݒuڑv܂//

//ݒu񕜁v//
;color 240,240,240:boxf 960,470,1190,560
gmode 2,1280,600,256
pos 980,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,503
mes ""
//ݒu񕜁v܂//
;܂ŁI

gsel 0,1

repeat 11
	redraw 0
	nTime += LOOP_TIME
	if (nTime > ZOOM_TIME):nTime = ZOOM_TIME
	n = geteasef(nTime, ZOOM_TIME)	// nTime = 0 ~ ZOOM_TIME, n = 0.0 ~ 1.0
	sx = n * GX	// sx = 0 ~ 1280
	sy = n * GY	// sy = 0 ~ 680

	pos (GX - sx) / 2, (GY - sy) / 2
	gzoom sx, sy, 999, 0, 0, GX, GY

x=cnt*25
	gmode 3,1280,680,x
	pos 0,0
	gcopy 981

await 12

redraw 1

	await 0
loop

	gmode 3,1280,680,256
	pos 0,0
	gcopy 981


color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

if Latest_OS_Edition="Service_000" {
Notification_Mode="gosub"

Notification_From="ݒ"
Notification_Title="F؂Kv"
Notification_Info="Star Light ̃[U[F؂sKv܂\nuF؁v烆[U[F؂Ă"

Notf_Sound=6

Notf_icon_Number=201

gosub *OS_Notification
}
goto *OS_Setting_Home_Main

*OS_Setting_Home_Ani
clrobj
onclick 0

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

goto *OS_Setting_Home_Main

*OS_Setting_Home_Back_Ani

clrobj 0
onclick 0

buffer 980, 1280,680
CaptureActiveWindow 1
gsel 0,1

buffer 981,1280,680;ݒNʂ̓zł

color 255,255,255:boxf

color 
font "Yu Gothic UI Semilight",35
pos 600,50 : mes "ݒ"

gmode 3,1280,680,256:pos 10,10:gcopy 79

//ݒuStar Light ̏v//
;color 240,240,240:boxf 150,170,380,260
gmode 2,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,203
mes "Star Light ̏"
//ݒuStar Light ̏v܂//

//ݒu[U[v//
;color 240,240,240:boxf 420,170,650,260
gmode 2,1280,600,256
pos 440,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,203
mes "[U["
//ݒu[U[v܂//

//ݒuF؁v//
;color 240,240,240:boxf 690,170,920,260
gmode 2,1280,600,256
pos 710,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,203
mes "F"
//ݒuF؁v܂//

//ݒuZLeBv//
;color 240,240,240:boxf 960,170,1190,260
gmode 2,1280,600,256
pos 980,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,203
mes "ZLeB"
//ݒuZLeBv܂//

//ݒuVC\T[rXv//
;color 240,240,240:boxf 150,320,380,410
gmode 2,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,353
mes "VC\T[rX"
//ݒuVC\T[rXv܂//

//ݒuLuxelav//
;color 240,240,240:boxf 420,320,650,410
gmode 2,1280,600,256
pos 440,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,353
mes "Luxela"
//ݒuLuxelav܂//

//ݒu / Languagev//
;color 240,240,240:boxf 690,320,920,410
gmode 2,1280,600,256
pos 710,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,353
mes " / Language"
//ݒu / Languagev܂//

//ݒuT|[gv//
;color 240,240,240:boxf 960,320,1190,410
gmode 2,1280,600,256
pos 980,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,353
mes "T|[g"
//ݒuT|[gv܂//

//ݒuUIJX^}CYv//
;color 240,240,240:boxf 150,470,380,560
gmode 2,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,503
mes "UIJX^}CY"
//ݒuUIJX^}CYv܂//

//ݒuXVv//
;color 240,240,240:boxf 420,470,650,560
gmode 2,1280,600,256
pos 440,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,503
mes "XV"
//ݒuXVv܂//

//ݒuڑv//
;color 240,240,240:boxf 690,470,920,560
gmode 2,1280,600,256
pos 710,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,503
mes "ڑ"
//ݒuڑv܂//

//ݒu񕜁v//
;color 240,240,240:boxf 960,470,1190,560
gmode 2,1280,600,256
pos 980,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,503
mes ""
//ݒu񕜁v܂//
;܂ŁI

gsel 0,1

gosub *OS_Transition_Animation_back

*OS_Setting_Home_Main

	onclick gosub *OS_Click_Setting_Menu

repeat;NbN҂̏Iȉ
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}

redraw 0

color 255,255,255 : boxf

gmode 3,1280,680,256:pos 10,10:gcopy 79

color 
font "Yu Gothic UI Semilight",35
pos 600,50 : mes "ݒ"

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

//ݒuStar Light ̏v//
;color 240,240,240:boxf 150,170,380,260
gmode 2,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,203
mes "Star Light ̏"
//ݒuStar Light ̏v܂//

//ݒu[U[v//
;color 240,240,240:boxf 420,170,650,260
gmode 2,1280,600,256
pos 440,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,203
mes "[U["
//ݒu[U[v܂//

//ݒuF؁v//
;color 240,240,240:boxf 690,170,920,260
gmode 2,1280,600,256
pos 710,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,203
mes "F"
//ݒuF؁v܂//

//ݒuZLeBv//
;color 240,240,240:boxf 960,170,1190,260
gmode 2,1280,600,256
pos 980,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,203
mes "ZLeB"
//ݒuZLeBv܂//

//ݒuVC\T[rXv//
;color 240,240,240:boxf 150,320,380,410
gmode 2,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,353
mes "VC\T[rX"
//ݒuVC\T[rXv܂//

//ݒuLuxelav//
;color 240,240,240:boxf 420,320,650,410
gmode 2,1280,600,256
pos 440,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,353
mes "Luxela"
//ݒuLuxelav܂//

//ݒu / Languagev//
;color 240,240,240:boxf 690,320,920,410
gmode 2,1280,600,256
pos 710,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,353
mes " / Language"
//ݒu / Languagev܂//

//ݒuT|[gv//
;color 240,240,240:boxf 960,320,1190,410
gmode 2,1280,600,256
pos 980,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,353
mes "T|[g"
//ݒuT|[gv܂//

//ݒuUIJX^}CYv//
;color 240,240,240:boxf 150,470,380,560
gmode 2,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,503
mes "UIJX^}CY"
//ݒuUIJX^}CYv܂//

//ݒuXVv//
;color 240,240,240:boxf 420,470,650,560
gmode 2,1280,600,256
pos 440,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,503
mes "XV"
//ݒuXVv܂//

//ݒuڑv//
;color 240,240,240:boxf 690,470,920,560
gmode 2,1280,600,256
pos 710,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,503
mes "ڑ"
//ݒuڑv܂//

//ݒu񕜁v//
;color 240,240,240:boxf 960,470,1190,560
gmode 2,1280,600,256
pos 980,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,503
mes ""
//ݒu񕜁v܂//

;}EX̏ꏊ擾Ĉ̏𖞂ĂȂɂ삷݂Ȃ

	if 150<= mousex & 380>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 150,170,380,260
color 255,255,255
gmode 4,1280,600,256
pos 170,195
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,198
mes "Star Light ̏"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,217
mes "Star Lightɂ"

}

	if 420<= mousex & 650>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 420,170,650,260

color 255,255,255
gmode 4,1280,600,256
pos 440,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,198
mes "[U["

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 500,217
mes "[U[Ȃǂ̕ύX"

}

	if 690<= mousex & 920>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 690,170,920,260
color 255,255,255
gmode 4,1280,600,256
pos 710,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,198
mes "F"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 780,217
mes "[U[F"

}

	if 960<= mousex & 1190>= mousex and 170<=mousey & 260>= mousey {
color 240,240,240:boxf 960,170,1190,260
color 255,255,255
gmode 4,1280,600,256
pos 980,195
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,198
mes "ZLeB"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 1060,217
mes "ZLeBݒ"

}

	if 150<= mousex & 380>= mousex and 320<=mousey & 410>= mousey {
color 240,240,240:boxf 150,320,380,410
color 255,255,255
gmode 4,1280,600,256
pos 170,345
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,348
mes "VC\T[rX"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,368
mes "VC\̏ڍאݒ"

}

	if 420<= mousex & 650>= mousex and 320<=mousey & 410>= mousey {
color 240,240,240:boxf 420,320,650,410
color 255,255,255
gmode 4,1280,600,256
pos 440,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,348
mes "Luxela"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 500,368
mes "Luxelȁڍאݒ"

}

	if 690<= mousex & 920>= mousex and 320<=mousey & 410>= mousey {
color 240,240,240:boxf 690,320,920,410
color 255,255,255
gmode 4,1280,600,256
pos 710,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,348
mes " / Language"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 780,368
mes "ύX"

}

	if 960<= mousex & 1190>= mousex and 320<=mousey & 410>= mousey {
color 240,240,240:boxf 960,320,1190,410
color 255,255,255
gmode 4,1280,600,256
pos 980,345
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,348
mes "T|[g"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 1060,368
mes "oO񍐂Ȃ"

}

	if 150<= mousex & 380>= mousex and 470<=mousey & 560>= mousey {
color 240,240,240:boxf 150,470,380,560
color 255,255,255
gmode 4,1280,600,256
pos 170,495
gcopy 64
color 
font"Yu Gothic UI Semilight",16
pos 220,498
mes "UIJX^}CY"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 220,518
mes "UIݒ"

}

	if 420<= mousex & 650>= mousex and 470<=mousey & 560>= mousey {
color 240,240,240:boxf 420,470,650,560
color 255,255,255
gmode 4,1280,600,256
pos 440,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 500,498
mes "XV"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 500,518
mes "Star LightAbvf[g"

}

	if 690<= mousex & 920>= mousex and 470<=mousey & 560>= mousey {
color 240,240,240:boxf 690,470,920,560
color 255,255,255
gmode 4,1280,600,256
pos 710,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 780,498
mes "ڑ"

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 780,518
mes "lbg[Nݒ"

}

	if 960<= mousex & 1190>= mousex and 470<=mousey & 560>= mousey {
color 240,240,240:boxf 960,470,1190,560
color 255,255,255
gmode 4,1280,600,256
pos 980,495
gcopy 88
color 
font"Yu Gothic UI Semilight",16
pos 1060,498
mes ""

color 100,100,100
font"Yu Gothic UI Semilight",14
pos 1060,518
mes "CAZbg"

}
redraw 1
wait 1
loop

*OS_Click_Setting_Menu;NbN
if Silent_Mode="Sound" {mmplay 2}else{}
	if 10<= mousex & 45>= mousex and 10<=mousey & 45>= mousey {goto *OS_Desktop_icon_on_Desktop_App_Close}

	if 150<= mousex & 380>= mousex and 170<=mousey & 260>= mousey {

onclick 0

goto *OS_Setting_About
}

	if 420<= mousex & 650>= mousex and 170<=mousey & 260>= mousey {

onclick 0

goto *OS_Setting_User
}

	if 690<= mousex & 920>= mousex and 170<=mousey & 260>= mousey {

repeat 10
x=cnt*16
gmode 3,1280,680,x
gcopy 3

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

redraw 1
pos 0,0:
color 
await 1
loop

if Authentication=0 {

	Authentication=1
	
	circle_x = 635
	circle_y = 305
	
	circle_size_x = 4
	circle_size_y = 4
	
	circle_range_x = 20
	circle_range_y = 20

	rad = 1.00
	rad2 = 1.50
	rad3 = 2.00
	rad4 = 2.50
	rad5 = 3.00

	repeat@250
		redraw 0
		color 255,255,255 : boxf

color 60,60,60
font "Yu Gothic UI Semilight",20
pos 580,380
mes "̊mF
	
		rad -= 0.05

		color 60,60,60
			circle sin(rad)*circle_range_x+circle_x, cos(rad)*circle_range_y+circle_y, sin(rad)*circle_range_x+circle_x+circle_size_x, cos(rad)*circle_range_y+circle_y+circle_size_y

		rad2 -= 0.05
		
		color 80,80,80
			circle sin(rad2)*circle_range_x+circle_x, cos(rad2)*circle_range_y+circle_y, sin(rad2)*circle_range_x+circle_x+circle_size_x, cos(rad2)*circle_range_y+circle_y+circle_size_y

		rad3 -= 0.05

		color 100,100,100
			circle sin(rad3)*circle_range_x+circle_x, cos(rad3)*circle_range_y+circle_y, sin(rad3)*circle_range_x+circle_x+circle_size_x, cos(rad3)*circle_range_y+circle_y+circle_size_y

		rad4 -= 0.05

		color 120,120,120
			circle sin(rad4)*circle_range_x+circle_x, cos(rad4)*circle_range_y+circle_y, sin(rad4)*circle_range_x+circle_x+circle_size_x, cos(rad4)*circle_range_y+circle_y+circle_size_y

		rad5 -= 0.05
		
		color 140,140,140
			circle sin(rad5)*circle_range_x+circle_x, cos(rad5)*circle_range_y+circle_y, sin(rad5)*circle_range_x+circle_x+circle_size_x, cos(rad5)*circle_range_y+circle_y+circle_size_y
	
		redraw 1
		await 5
	loop
}
BSOD_MES="There is an abnormality in the app [VXeݒ]"
goto *OS_ERR_BSOD
}

	if 960<= mousex & 1190>= mousex and 170<=mousey & 260>= mousey {

if Security=0 {

	Security=1
	
	circle_x = 635
	circle_y = 305
	
	circle_size_x = 4
	circle_size_y = 4
	
	circle_range_x = 20
	circle_range_y = 20

	rad = 1.00
	rad2 = 1.50
	rad3 = 2.00
	rad4 = 2.50
	rad5 = 3.00

	repeat@250
		redraw 0
		color 255,255,255 : boxf

color 60,60,60
font "Yu Gothic UI Semilight",20
pos 555,380
mes "ZLeB̊mF
	
		rad -= 0.05

		color 60,60,60
			circle sin(rad)*circle_range_x+circle_x, cos(rad)*circle_range_y+circle_y, sin(rad)*circle_range_x+circle_x+circle_size_x, cos(rad)*circle_range_y+circle_y+circle_size_y

		rad2 -= 0.05
		
		color 80,80,80
			circle sin(rad2)*circle_range_x+circle_x, cos(rad2)*circle_range_y+circle_y, sin(rad2)*circle_range_x+circle_x+circle_size_x, cos(rad2)*circle_range_y+circle_y+circle_size_y

		rad3 -= 0.05

		color 100,100,100
			circle sin(rad3)*circle_range_x+circle_x, cos(rad3)*circle_range_y+circle_y, sin(rad3)*circle_range_x+circle_x+circle_size_x, cos(rad3)*circle_range_y+circle_y+circle_size_y

		rad4 -= 0.05

		color 120,120,120
			circle sin(rad4)*circle_range_x+circle_x, cos(rad4)*circle_range_y+circle_y, sin(rad4)*circle_range_x+circle_x+circle_size_x, cos(rad4)*circle_range_y+circle_y+circle_size_y

		rad5 -= 0.05
		
		color 140,140,140
			circle sin(rad5)*circle_range_x+circle_x, cos(rad5)*circle_range_y+circle_y, sin(rad5)*circle_range_x+circle_x+circle_size_x, cos(rad5)*circle_range_y+circle_y+circle_size_y
	
		redraw 1
		await 5
	loop
}	
BSOD_MES="There is an abnormality in the app [VXeݒ]"
goto *OS_ERR_BSOD
}

	if 150<= mousex & 380>= mousex and 320<=mousey & 410>= mousey {
dialog "VC\T[rX"
}

	if 420<= mousex & 650>= mousex and 320<=mousey & 410>= mousey {
dialog "Luxela"
}

	if 690<= mousex & 920>= mousex and 320<=mousey & 410>= mousey {
dialog " / Language"
}

	if 960<= mousex & 1190>= mousex and 320<=mousey & 410>= mousey {
goto *support
}

	if 150<= mousex & 380>= mousex and 470<=mousey & 560>= mousey {
data = "ݒ"

	dialog "}ōݒʂłi\n^XNo[̈ʒu𔽑΂ɂ܂H\n(肪ꂽߎۂɕύX邱Ƃ͏o܂)", 3, data

;	VXeϐstatɁA[U[ǂ̃{^Ԃ

;	u͂v{^ꍇ
	if stat = 6 {
		dialog "ݒύX܂I"
	}

;	uv{^ꍇ
	if stat = 7 {
		mes " ύX܂ł"
	}
}

	if 420<= mousex & 650>= mousex and 470<=mousey & 560>= mousey {
goto *updatesystem
}

	if 690<= mousex & 920>= mousex and 470<=mousey & 560>= mousey {
dialog "lbg[N"
}

	if 960<= mousex & 1190>= mousex and 470<=mousey & 560>= mousey {
dialog ""
}



return
*OS_System_Error_Mini
	onclick 0
	clrobj
		Hant=0
repeat 28
	redraw 0
	Hant=Hant+1
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
font"CI",25

mmplay 1

color 255,255,255
pos 350,168
mes "G["

gmode 2,1280,680,256
pos 300,168
gcopy 63

pos 320,240
mes ""+OS_Error_Mini_Mes+""
font "CI",18
pos 320,300
mes ""+OS_Error_Mini_Mes_2+""
objmode 2
font "CI",18
objsize 100,30
objimage 76,0,0,0,0,250,0
pos 560,460
button goto"OK",*OS_Desktop_Main

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Setting_About
	
clrobj 0
onclick 0

buffer 980, 1280,680
CaptureActiveWindow 1
gsel 0,1

buffer 981,1280,680

redraw 0
color 80,80,80
pos -1000
font "Yu Gothic UI",20
mes ""+Latest_OS_Version+"

pos ginfo_winx-ginfo_mesx>>1,450
mes ""+Latest_OS_Version+"

color 

pos -1000
font "Yu Gothic UI Semilight",30
mes ""+Latest_OS_Name+"
pos ginfo_winx-ginfo_mesx>>1,380
mes ""+Latest_OS_Name+"

gmode 3,1280,680,256
pos 582,180
	gcopy 4

color 80,80,80
pos -1000
font "Yu Gothic UI Semilight",17
mes "Copyright(C)2018-2019 milai.All rights reserved."

pos ginfo_winx-ginfo_mesx>>1,620
mes "Copyright(C)2018-2019 milai.All rights reserved."

setease 100,10,ease_quartic_out
Button_Toumei=Button_Toumei+10
x = getease(i,50)
Y = 10
font "Yu Gothic UI Semilight",35
gmode 3,1280,680,256:pos 10,10:gcopy 79:pos 38,18:color 80,80,80:font "Yu Gothic UI Semilight",14:mes "ݒ"

redraw 1

gsel 0,1

clrobj 0

gosub *OS_Transition_Animation

	onclick gosub *OS_Click_Setting_Menu_About
	OS_Easter_Sys="No"
objmode 2
objsize 130,45
objimage 84,0,0,0,0,250,0
pos 1130,620
font "Yu Gothic UI Semilight",16
button goto"ڂ",*OS_Setting_About_2

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

OS_Error_Mini_Mes="Av [VXeݒ] ~܂":OS_Error_Mini_Mes_2="̃G[pɂɋNꍇ́A[VXeݒ][T|[g]\n[₢킹]milaiւ₢킹肢܂B\n\nAvP[V͏I܂":goto *OS_System_Error_Mini

*OS_Setting_About_2

buffer 980,1280,680
CaptureActiveWindow 1
gsel 0,1

clrobj 0

buffer 981,1280,680
color 255,255,255:boxf

redraw 0

color 80,80,80
font "Yu Gothic UI Semilight",35
pos 480,50 : mes "Star Light ̏ڂ"

color 0,0,0

font "Yu Gothic UI",25
pos 300,100
mes "\n
font "CI",16

pos 300,140
mes "GfBV          Star test(ST)\n
mes "o[W             "+Latest_OS_Version+"\n
mes "OSrh               "+Latest_OS_Build+"\n
mes "Jn             2019/8/15\n
mes "\tgR[h          "+Soft_Code+"\n
mes "E             milai\n
mes "T|[g                [U[F؂Kv\n
mes "摜̒쌠          milaiAt[摜̔zz\n
mes "ʉ̒쌠       milaiAʉ{\n
mes "App̒쌠          milai\n
mes "OSҁ@@@@@base:Kain,custom:creeper

gmode 3,1280,680,256
pos 850,300
gcopy 4

font "Yu Gothic UI Semilight",35
gmode 3,1280,680,256:pos 10,10:gcopy 79:pos 38,18:color 80,80,80:font "Yu Gothic UI Semilight",14:mes "Star Lightɂ"

redraw 1

gsel 0,1

gosub *OS_Transition_Animation

	onclick gosub *OS_Click_Setting_Menu_About_2

	OS_Easter_Sys="No"

objmode 2
objsize 130,45
objimage 84,0,0,0,0,250,0
pos 1130,620
font "Yu Gothic UI Semilight",16
button goto"ȈՏ",*OS_Setting_About

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

OS_Error_Mini_Mes="Av [VXeݒ] ~܂":OS_Error_Mini_Mes_2="̃G[pɂɋNꍇ́A[VXeݒ][T|[g]\n[₢킹]milaiւ₢킹肢܂B\n\nAvP[V͏I܂":goto *OS_System_Error_Mini

*OS_Click_Setting_Menu_About
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 10<= mousex & 60>= mousex and 10<=mousey & 45>= mousey {goto *OS_Setting_Home_Back_Ani}
return

*OS_Click_Setting_Menu_About_2
	if Silent_Mode="Sound" {mmplay 2}else{}
	if 10<= mousex & 150>= mousex and 10<=mousey & 45>= mousey {goto *OS_Setting_About}
	if 850<= mousex & 970>= mousex and 300<=mousey & 420>= mousey {gosub *OS_Setting_Easter_Egg}
return

*OS_System_Warning_Mini
	onclick 0
	clrobj
		Hant=0
repeat 28
	redraw 0
	Hant=Hant+1
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop
font"Yu Gothic UI Semilight",25
mmplay 1
color 255,255,255
pos 350,170
mes "x"

gmode 2,1280,680,256
pos 300,168
gcopy 69

pos 320,240
mes ""+OS_Warning_Mini_Mes+""
font "Yu Gothic UI Semilight",18
pos 320,300
mes ""+OS_Warning_Mini_Mes_2+""
objmode 2
font "Yu Gothic UI Semilight",18
objsize 100,30
objimage 76,0,0,0,0,250,0
pos 560,460
button goto"OK",*OS_Desktop_Main
stop
*OS_Setting_Easter_Egg
	OS_Easter_Sys="Yes"
screen 100,1280,680,0,30,30
title "www - Easter Egg  EBhENbNĕ@*Click to close easter egg window.
gsel 100,2
pos 0,0
if Silent_Mode="Sound" {mmplay 5}else{}
onclick goto *Easter_Egg_Close
onexit goto *Easter_Egg_Close
repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop
*Easter_Egg_Close
	gsel 100,-1
	onclick 0
	onexit 0
	gsel 0,1
	
	repeat 10
x=cnt*16
	gmode 3,1280,680,x

	gcopy 3

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
	
	redraw 1
	pos 0,0
	color 
	await 1
	loop
	
goto *OS_Setting_About

*OS_Setting_User
	
clrobj 0
onclick 0

buffer 980,1280,680
CaptureActiveWindow 1
gsel 0,1


buffer 981,1280,680

color 255,255,255:boxf

redraw 0

gmode 1,1280,680
pos 580,200
gcopy 221

font "Yu Gothic UI Semilight",35
color 30,30,30
pos -1000
mes "[U["
pos ginfo_winx-ginfo_mesx>>1,50
mes "[U["

color 100,100,100
font "Yu Gothic UI Semilight",18
pos -1000
mes "[U[Ɋւݒ"
pos ginfo_winx-ginfo_mesx>>1,100
mes "[U[Ɋւݒ"

color 80,80,80
font "Yu Gothic UI",30
pos -1000
mes ""+username+""
pos ginfo_winx-ginfo_mesx>>1,350
mes ""+username+""

if pass=""{
color 200,50,50
font "Yu Gothic UI Semilight",15
pos -1000
mes "Star Light̕ی͖ł"
pos ginfo_winx-ginfo_mesx>>1,400
mes "Star Light̕ی͖ł"
}else{
color 100,100,100
font "Yu Gothic UI Semilight",15
pos -1000
mes "Star Light̕ی͗Lł"
pos ginfo_winx-ginfo_mesx>>1,400
mes "Star Light̕ی͗Lł"
}

if developermode="No"{
	color 100,100,100
font "Yu Gothic UI Semilight",15
pos -1000
mes "Developer Mode - Off"
pos ginfo_winx-ginfo_mesx>>1,450
mes "Developer Mode - Off"
}else{
color 100,100,100
font "Yu Gothic UI Semilight",15
pos -1000
mes "Developer Mode - On"
pos ginfo_winx-ginfo_mesx>>1,450
mes "Developer Mode - On"
}

gmode 3,1280,680,256:pos 10,10:gcopy 79:pos 38,18:color 80,80,80:font "Yu Gothic UI Semilight",14:mes "ݒ"

redraw 1

gsel 0,1

clrobj 0

gosub *OS_Transition_Animation

objmode 2
objsize 250,80
objimage 84,0,0,0,0,250,0
pos 515,530
font "Yu Gothic UI Semilight",17
button goto"[U[ݒύX",*OS_Setting_User_Customize_Ani

onclick gosub *OS_Click_Setting_Menu_User

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Click_Setting_Menu_User
if Silent_Mode="Sound" {mmplay 2}else{}
if 10<= mousex & 45>= mousex and 10<=mousey & 45>= mousey {goto *OS_Setting_Home_Back_Ani}
return

*OS_Setting_User_Customize_Ani

clrobj 0

usernamechange=""
		Hant=0
repeat 20
	redraw 0
	Hant=Hant+2
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop

if Pass_Setting_Window_Info2=1{

Pass_Setting_Window_Info2=0
Big_Window=0

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,600,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	hRegion = CreateRoundRectRgn (0, 0, 390, 460, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 150,45
mes "ݒI"

font "Yu Gothic UI",17
pos 115,85
mes "pڂNbN
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45

    pos 100,180
objimage 84,0,0,0,0,250,0
    button "[U[ύX",*OS_Setting_Pass_Change_Pass_Set
    
    pos 100,300
objimage 84,0,0,0,0,250,0
    button "Star Light̕یݒ",*OS_Setting_Pass_Change_Pass_Off

       gmode 2
    objsize 390,60
    objmode 2
    pos -1,399
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Window_Cansel
    
width 390,500
Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 0,500,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

}else{dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,600,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	hRegion = CreateRoundRectRgn (0, 0, 390, 460, 50, 50)
	SetWindowRgn hwnd, hRegion, 1
clrobj
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ}

	hRegion = CreateRoundRectRgn (0, 0, 390, 460, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 150,45
mes "ݒI"

font "Yu Gothic UI",17
pos 115,85
mes "pڂNbN
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45

    pos 100,180
objimage 84,0,0,0,0,250,0
    button "[U[ύX",*OS_Setting_User_Customize_Name
    
    pos 100,250
objimage 84,0,0,0,0,250,0
    button "Star Light̕یݒ",*OS_Setting_Pass_Customize_Name

       gmode 2
    objsize 390,60
    objmode 2
    pos -1,399
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Window_Cansel
    
width 390,500
Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
Big_Window=0
	i=0

repeat 45
redraw 0
	setease 0,500,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

}

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Setting_User_Window_Cansel

Big_Window=0
	i=0

repeat 65
redraw 0
	setease 500,0,ease_quartic_in
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 5
redraw 1
loop

gsel 101,-1
gsel 0,1

repeat 16
x=cnt*16
	gmode 3,1280,680,x
	pos 0,0
	gcopy 3
	redraw 1
	await 5
	loop

goto *OS_Setting_User
	
*OS_Click_Setting_Menu_User_Change
if Silent_Mode="Sound" {mmplay 2}else{}

if 10<= mousex & 45>= mousex and 10<=mousey & 45>= mousey {onclick 0 : goto *OS_Setting_User}

return


*OS_Setting_User_Customize_Name
	Screen_Capture_Stat="NoCapture"

clrobj 0

Tran=0

//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

gsel 101,2
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos -1000
mes "[U[ύX"
pos ginfo_winx-ginfo_mesx>>1,50
mes "[U[ύX"
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,120
input usernamechange,200,30,32

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "ύXKp",*OS_Setting_User_Change_Name_Change

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 500,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

onkey gosub *OS_Key_Press

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Setting_User_Change_Name_Change

if usernamechange=""{usernamechange="No Name"}else{username=usernamechange}

*OS_User_Setting_Change_Comp

gsel 101,2
clrobj

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

redraw 0
color 255,255,255:boxf

color 80,80,80

font "Yu Gothic UI",18,1
pos -1000
mes "[U[ύXς"
pos ginfo_winx-ginfo_mesx>>1,50
mes "[U[ύXς"

font "Yu Gothic UI",17
pos 60,100
mes "ύXe͂܂SɓKpĂ܂\nKpɂStar Light̍ċNKvł

redraw 1

    gmode 2
    objsize 390,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "OK",*OS_User_Setting_Change_Comp_Close

if Silent_Mode="Sound" {mmplay 13}else{}
	repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_User_Setting_Change_Comp_Close
	onkey gosub *OS_Key_Check
Screen_Capture_Stat="Capture"
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

gsel 101,2
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	clrobj 0

if Silent_Mode="Sound" {mmplay 2}else{}

Big_Window=0
	i=0
repeat 45
	setease 300,0,ease_quartic_in
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

gsel 101,-1

repeat 10:x=cnt*16:gmode 3,1280,680,x:gcopy 3:redraw 1:pos 0,0:color :await 1:loop

goto *OS_Setting_User_Customize_Ani

*OS_Setting_User_Name_Change_Cancel
	onkey gosub *OS_Key_Check
Screen_Capture_Stat="Capture"
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

gsel 101,2
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	clrobj 0

if Silent_Mode="Sound" {mmplay 2}else{}

Big_Window=0
	i=0
repeat 45
	setease 300,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

gsel 101,-1
gsel 0,1

goto *OS_Setting_User_Customize_Ani

//////pX[h̓z//////
*OS_Setting_Pass_Customize_Name
clrobj 0
pass2=""

Screen_Capture_Stat="NoCapture"

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ
Pass_Setting_Window_Info=0
color 255,255,255:boxf
if pass="" {
	redraw 0
color 80,80,80
font "Yu Gothic UI",21,1
pos -1000
mes "Star Light̕یݒ"
pos ginfo_winx-ginfo_mesx>>1,50
mes "Star Light̕یݒ"

font "Yu Gothic UI",17
pos -1000
mes "Star Light̕یݒ肵܂H"
pos ginfo_winx-ginfo_mesx>>1,120
mes "Star Light̕یݒ肵܂H"


redraw 1

objmode 2
    gmode 2
    objsize 200,45
   

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "ݒ",*OS_Setting_Pass_Change_Pass_Set

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

    
}else{
onkey gosub *OS_Key_Press
redraw 0
color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "[U[̊mF"
pos ginfo_winx-ginfo_mesx>>1,45
mes "[U[̊mF"

font "Yu Gothic UI",17
	pos -1000
	mes "pX[h͂đs"
pos ginfo_winx-ginfo_mesx>>1,85
mes "pX[h͂đs"


objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 390,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

redraw 1

onkey gosub *OS_Setting_Pass_Customize_Check
    
}
Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

Big_Window=0
	i=0

repeat 45
redraw 0
	setease 500,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Setting_Pass_Customize_Check

getkey flag, 13;EnterL[
if flag=1 : goto *OS_Setting_Pass_Change_Pass_Check

return

*OS_Setting_Pass_Change_Pass_Check
	gsel 101,2
clrobj 0
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

if pass = pass2 {goto *OS_Setting_Pass_Change_Menu}else{
gsel 101,2
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

redraw 0
color 255,255,255:boxf

pass2=""

	color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "Ďs"
pos ginfo_winx-ginfo_mesx>>1,45
mes "Ďs"

font "Yu Gothic UI",17
	pos -1000
	mes "pX[hsv"
pos ginfo_winx-ginfo_mesx>>1,85
mes "pX[hsv"

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 390,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

Big_Window=0
	i=0
	onkey 0
if Silent_Mode="Sound" {mmplay 20}else{}
repeat 65
	setease  440,480,ease_shake_in
	Big_Window_X = getease(i,50)
	flag=0
	width ,,Big_Window_X,406
	i=i+1
	await 12
loop
    
}
onkey 1
stop

*OS_Setting_Pass_Change_Menu
onkey gosub *OS_Key_Check
gsel 101,2
	clrobj 0
if Pass_Setting_Window_Info2=1{

Pass_Setting_Window_Info2=0
Big_Window=0
	i=0
repeat 45
	setease 180,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 8
loop
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

gsel 101,2
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
bgscr 101,390,600,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	hRegion = CreateRoundRectRgn (0, 0, 390, 460, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 150,45
mes "ݒI"

font "Yu Gothic UI",17
pos 115,85
mes "pڂNbN
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45

    pos 100,180
objimage 84,0,0,0,0,250,0
    button "pX[hύX",*OS_Setting_Pass_Change_Pass_Set
    
    pos 100,250
objimage 84,0,0,0,0,250,0
    button "Star Light̕یIt",*OS_Setting_Pass_Change_Pass_Off

       gmode 2
    objsize 390,60
    objmode 2
    pos -1,399
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_Pass_Big_Change_Cancel
    
width 390,500
Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 180,500,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

}else{dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ
gsel 101,2
clrobj
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ}

	hRegion = CreateRoundRectRgn (0, 0, 390, 460, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

redraw 0
color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 150,45
mes "ݒI"

font "Yu Gothic UI",17
pos 115,85
mes "pڂNbN
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45

    pos 100,180
objimage 84,0,0,0,0,250,0
    button "pX[hύX",*OS_Setting_Pass_Change_Pass_Set
    
    pos 100,250
objimage 84,0,0,0,0,250,0
    button "Star Light̕یIt",*OS_Setting_Pass_Change_Pass_Off

       gmode 2
    objsize 390,60
    objmode 2
    pos -1,399
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_Pass_Big_Change_Cancel
    
width 390,500
Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
Big_Window=0
	i=0

repeat 45
redraw 0
	setease 280,500,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 5
redraw 1
loop

}

Pass_Setting_Window_Info=1
stop

*OS_Setting_Pass_Big_Change_Cancel
Screen_Capture_Stat="Capture"
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

gsel 101,2
Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

	clrobj 0

if Silent_Mode="Sound" {mmplay 2}else{}

Big_Window=0
	i=0
repeat 45
	setease 500,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop

gsel 101,-1
gsel 0,1

goto *OS_Setting_User_Customize_Ani

*OS_Setting_Pass_Change_Pass_Set
	onkey gosub *OS_Key_Press
pass2=""
gsel 101,2
clrobj 0

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

if Pass_Setting_Window_Info=1 {Pass_Setting_Window_Info=0

redraw 0
color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 135,45
mes "pX[h"

font "Yu Gothic UI",17
pos 95,85
mes "Vݒ肷pX[h
redraw 1
objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45
    
    pos 100,185
objimage 84,0,0,0,0,250,0
    button "",*OS_Setting_Pass_Change_Pass_Next

    objsize 70,30

    pos 315,5
    font "Yu Gothic UI Semilight",16
    color 0,166,255
    button gosub "LZ",*OS_Setting_User_Name_Change_Cancel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1
	
    Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 500,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
}else{
    Big_Window=0
	i=0
gsel 101,2
repeat 45
	setease 300,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 7
loop
redraw 0
color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 135,45
mes "pX[h"

font "Yu Gothic UI",17
pos 95,85
mes "Vݒ肷pX[h
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "",*OS_Setting_Pass_Change_Pass_Next

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

    Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 0,300,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

	i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

}
stop

*OS_Setting_Pass_Change_Pass_Next
pass3=""
gsel 101,2
clrobj 0

dim point,2
point=0,0

redraw 0

color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 135,45
mes "pX[h"

font "Yu Gothic UI",17
pos 75,85
mes "Vݒ肷pX[hēx

redraw 1
if Silent_Mode="Sound" {mmplay 13}else{}
objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass3,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "یݒ",*OS_Setting_Pass_Change_Pass_Check2

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel
    
stop

*OS_Setting_Pass_Change_Pass_Check2

if pass2 = pass3 {goto *OS_Setting_Pass_Change_Comp}else{

pass2=""
pass3=""
gsel 101,2
clrobj 0

dim point,2
point=0,0

redraw 0
color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 125,45
mes "pX[hsv"

font "Yu Gothic UI",17
pos 115,85
mes "ŏ蒼Ă
redraw 1
objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "",*OS_Setting_Pass_Change_Pass_Next

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

if Silent_Mode="Sound" {mmplay 20}else{}

}

stop

*OS_Setting_Pass_Change_Comp
	onkey 0
gsel 101,2
clrobj

pass=pass2
notesel pass
notesave "system/user/pass.txt"
Screen_Capture_Stat="Capture"
redraw 0
color 255,255,255:boxf

color 80,80,80

font "Yu Gothic UI",21

pos 105,60
mes "pX[hݒς"
redraw 1

if Silent_Mode="Sound" {mmplay 13}else{}

hRegion = CreateRoundRectRgn (0, 0, 390, 160, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

    Big_Window=0
	i=0
repeat 45
	setease 300,200,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

wait 100

    Big_Window=0
	i=0
repeat 45
	setease 200,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 8
loop

onkey gosub *OS_Key_Check

gsel 101,-1

goto *OS_Setting_User_Customize_Ani

*OS_Setting_Pass_Change_Pass_Off
onkey gosub *OS_Key_Check
Pass_Setting_Window_Info2=0

gsel 101,25
clrobj 0
	dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

color 255,255,255:boxf

color 80,80,80
font "Yu Gothic UI",21,1
pos 135,50
mes "pX[hIt"

font "Yu Gothic UI",17
pos 110,95
mes "pX[hItɂ܂H
pos 95,120
mes "ItɂƈSቺ܂
objmode 2
    gmode 2
    objsize 200,45
    
    pos 100,170
objimage 84,0,0,0,0,250,0
    button "Itɂ",*OS_Setting_Pass_Change_Off2

    objsize 70,30

    pos 315,5
    font "Yu Gothic UI Semilight",16
    color 0,166,255
    button gosub "LZ",*OS_Setting_Pass_Change_Menu

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

    Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 500,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
    
stop

*OS_Setting_Pass_Change_Off2
	gsel 101,2
clrobj 0

pass=""
notesel pass
notesave "system/user/pass.txt"

Screen_Capture_Stat="Capture"

redraw 0
color 255,255,255:boxf

color 80,80,80

font "Yu Gothic UI",21

pos 105,60
mes "pX[hItɂ܂"
redraw 1

if Silent_Mode="Sound" {mmplay 13}else{}

hRegion = CreateRoundRectRgn (0, 0, 390, 160, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

    Big_Window=0
	i=0
repeat 45
	setease 300,200,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

wait 100

    Big_Window=0
	i=0
repeat 45
	setease 200,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 8
loop


gsel 101,-1

goto *OS_Setting_User_Customize_Ani
//////܂//////


*OS_Transition_Animation
////////gWVAjigj////////
x=0
i=0
color 255,255,255

repeat 25
redraw 0
color 255,255,255:boxf

setease 0,-80,ease_quartic_in
x = getease(i,60)
gmode 3,1280,680,256:pos x,0:gcopy 980

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

redraw 1
await 1
i=i+2
loop

////////gWVAjigj////////
////////gWVAj2igj////////
x=0
i=0
color 255,255,255

repeat 70
redraw 0
color 255,255,255:boxf

setease 60,0,ease_quartic_out
x = getease(i,60)
gmode 3,1280,680,256:pos x,0:gcopy 981

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

redraw 1
await 4
i=i+1
loop
////////gWVAj2igj////////

return

*OS_Transition_Animation_Back
////////gWVAjigj////////
x=0
i=0
color 255,255,255

repeat 25
redraw 0
color 255,255,255:boxf

setease 0,80,ease_quartic_in
x = getease(i,60)
gmode 3,1280,680,256:pos x,0:gcopy 980

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

redraw 1
await 1
i=i+2
loop
////////gWVAjigj////////
////////gWVAj2ikj////////
x=0
i=0
color 255,255,255

repeat 70
redraw 0
color 255,255,255:boxf

setease -60,0,ease_quartic_out
x = getease(i,60)
gmode 3,1280,680,256:pos x,0:gcopy 981

color 80,80,80
pos 1208,5
font "Yu Gothic UI Semilight",25
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

redraw 1
await 4
i=i+1
loop
////////gWVAj2ikj////////

return

*OS_HSP_Error_Blue
onkey gosub *OS_Key_Check
gsel 0,1
gblur 2
onclick 0
	clrobj
		Hant=0
repeat 24
	redraw 0
	Hant=Hant+1
 color
 gmode 3,,,Hant
 boxfa 0,0,1280,680
 await 1
redraw 1
loop


//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+300
Big_Window_Y=point(1)+680
bgscr 101,680,580,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

mmplay 1
//EBhE0,0̈ʒũXN[̍W𒲂ׂ
dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+400
Big_Window_Y=point(1)+680
bgscr 101,480,440,0,Big_Window_X,Big_Window_Y
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

redraw 0
color 255,255,255:boxf
Big_Window=0
	i=0

gmode 3,1280,680,256
pos 220,30
gcopy 220

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes ""+Run_App_Name+" ~܂"
pos ginfo_winx-ginfo_mesx>>1,105
mes ""+Run_App_Name+" ~܂"


color 100,100,100
font "Yu Gothic UI",16
pos 80,160
mes "HSP֘A̖肪߁AAppI܂B\n̖肪JԂNꍇ́Amilaiɕ񍐂Ă\nB\noO񍐂http://msssoftware.cf/bug-report/\nG[OYtĕ񍐂ĂB\n\nG[Of[^ɌlȂǂ͊܂܂܂B\nf[^́AStar Light̕sP̂߂Ɏgp܂B

objmode 2
font "Yu Gothic UI Semilight",18

objimage 84,0,0,0,0,250,0
objsize 240,60
pos -1,360
button goto "ڍ׏",*Err_Info_About
pos 240,360
button goto "AppI",*Err_Close_App

redraw 1

	errornumber=wparam
	if errornumber=1 {Err_info_mes="VXeG[܂"}
	if errornumber=2 {Err_info_mes="@ԈĂ܂"}
	if errornumber=3 {Err_info_mes="p[^̒lُł"}
	if errornumber=4 {Err_info_mes="vZŃG[܂"}
	if errornumber=5 {Err_info_mes="p[^̏ȗ͂ł܂"}
	if errornumber=6 {Err_info_mes="p[^̌^Ⴂ܂"}
	if errornumber=7 {Err_info_mes="z̗vfł"}
	if errornumber=8 {Err_info_mes="Lȃxw肳Ă܂"}
	if errornumber=9 {Err_info_mes="Tu[`⃋[ṽlXg[܂"}
	if errornumber=10 {Err_info_mes="Tu[`Oreturn͖ł"}
	if errornumber=11 {Err_info_mes="repeatOłloop͖ł"}
	if errornumber=12 {Err_info_mes="t@CȂȖOł"}
	if errornumber=13 {Err_info_mes="摜t@C܂"}
	if errornumber=14 {Err_info_mes="Ot@CĂяõG[ł"}
	if errornumber=15 {Err_info_mes="vZŃJbR̋LqႢ܂"}
	if errornumber=16 {Err_info_mes="p[^̐܂"}
	if errornumber=17 {Err_info_mes="񎮂ň镶z܂"}
	if errornumber=18 {Err_info_mes="łȂϐw肵Ă܂"}
	if errornumber=19 {Err_info_mes="0ŏZ܂"}
	if errornumber=20 {Err_info_mes="obt@I[o[t[܂"}
	if errornumber=21 {Err_info_mes="T|[gȂ@\I܂"}
	if errornumber=22 {Err_info_mes="vZ̃JbR[܂"}
	if errornumber=23 {Err_info_mes="ϐw肳Ă܂"}
	if errornumber=24 {Err_info_mes="ȊOw肳Ă܂"}
	if errornumber=25 {Err_info_mes="z̗vfԈĂ܂"}
	if errornumber=26 {Err_info_mes="̊mۂł܂ł"}
	if errornumber=27 {Err_info_mes="^Cv̏Ɏs܂"}
	if errornumber=28 {Err_info_mes="֐Ɉݒ肳Ă܂"}
	if errornumber=29 {Err_info_mes="X^bN̈̃I[o[t[ł"}
	if errornumber=30 {Err_info_mes="ȖOp[^[Ɏw肳Ă܂"}
	if errornumber=31 {Err_info_mes="قȂ^zϐɑ܂"}
	if errornumber=32 {Err_info_mes="֐̃p[^[Lqsł"}
	if errornumber=33 {Err_info_mes="IuWFNg܂"}
	if errornumber=34 {Err_info_mes="zE֐ƂĎgpłȂ^ł"}
	if errornumber=35 {Err_info_mes="W[ϐw肳Ă܂"}
	if errornumber=36 {Err_info_mes="W[ϐ̎w肪ł"}
	if errornumber=37 {Err_info_mes="ϐ^̕ϊɎs܂"}
	if errornumber=38 {Err_info_mes="ODLĽĂяoɎs܂"}
	if errornumber=39 {Err_info_mes="OIuWFNǧĂяoɎs܂"}
	if errornumber=40 {Err_info_mes="֐̖߂lݒ肳Ă܂"}
	if errornumber=41 {Err_info_mes="֐𖽗߂ƂċLqĂ܂"}


hRegion = CreateRoundRectRgn (0, 0, 480, 420, 50, 50)
	SetWindowRgn hwnd, hRegion, 1


i=0
repeat 45
redraw 0
	setease 0,468,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
redraw 1
loop

i=0

repeat 45
	setease 468,460,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

notesel ERR_LOG
noteload "system/Error_Log.txt"
noteadd "Error No.["+errornumber+"]@Error Line.["+lparam+"]@Error Time.["+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" "+gettime(4)+":"+gettime(5)+"]"
notesave "system/Error_Log.txt"



Notification_Mode="gosub"

Notification_From="VXe"
Notification_Title="G[Oۑς"
Notification_Info="G[̃Of[^ɕۑ܂\nsystem/Error_Log.txt"

Notf_Sound=6

Notf_icon_Number=203

gosub *OS_Notification

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*Err_Close_App

gsel 101
i=0

repeat 45
	setease 460,0,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,403,Big_Window_Y3
	i=i+1
	await 9
loop

gsel 101,-1
gsel 0,1

goto *OS_Desktop_icon_on_Desktop_App_Close

*Err_Info_About
gsel 101,2
clrobj 0
redraw 0
color 255,255,255:boxf

gmode 3,1280,680,256
pos 220,30
gcopy 220

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes "G[̏ڍדe"
pos ginfo_winx-ginfo_mesx>>1,105
mes "G[̏ڍדe"

gmode 3,1280,680,256
pos 220,30
gcopy 220

color 100,100,100
font "Yu Gothic UI",18
	pos -1000
	mes Err_info_mes
pos ginfo_winx-ginfo_mesx>>1,160
mes Err_info_mes
	pos -1000
	mes "G[ԍ : "+errornumber+""
pos ginfo_winx-ginfo_mesx>>1,190
mes "G[ԍ : "+errornumber+""
	pos -1000
	mes "G[s : "+errornumber+""
pos ginfo_winx-ginfo_mesx>>1,220
mes "G[s : "+lparam+""

objmode 2
font "Yu Gothic UI Semilight",18

objimage 84,0,0,0,0,250,0
objsize 240,60
pos -1,360
button goto "߂",*Err_Info_Back
pos 240,360
button goto "AppI",*Err_Close_App
redraw 1
mmplay 13

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*Err_Info_Back
	gsel 101,2
clrobj 0
redraw 0
color 255,255,255:boxf

gmode 3,1280,680,256
pos 220,30
gcopy 220

color 80,80,80
font "Yu Gothic UI",21,1
	pos -1000
	mes ""+Run_App_Name+" ~܂"
pos ginfo_winx-ginfo_mesx>>1,105
mes ""+Run_App_Name+" ~܂"


color 100,100,100
font "Yu Gothic UI",16
pos 80,160
mes "HSP֘A̖肪߁AAppI܂B\n̖肪JԂNꍇ́Amilaiɕ񍐂Ă\nB\noO񍐂http://msssoftware.cf/bug-report/\nG[OYtĕ񍐂ĂB\n\nG[Of[^ɌlȂǂ͊܂܂܂B\nf[^́AStar Light̕sP̂߂Ɏgp܂B

objmode 2
font "Yu Gothic UI Semilight",18

objimage 84,0,0,0,0,250,0
objsize 240,60
pos -1,360
button goto "ڍ׏",*Err_Info_About
pos 240,360
button goto "AppI",*Err_Close_App

redraw 1
mmplay 13

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Error_End
title "Star Light IĂ܂..."
cls 4
end


*OS_BOOT_MODE_SAFE_MODE_INFO
	dialog "Z[t[hŋN܂"
	dialog "------>12\nG[܂",1,"Star Light - Boot Manager"
	end

*OS_BOOT_BAR

BAR_TIME2=Bar_BOOT		// g傷鎞(ms)

	bTime = 418
setease 0,Bar_BOOT,ease_cubic_out

repeat 6
	bTime += Bar_TIME
	if (bTime > BAR_TIME2):bTime = BAR_TIME2
		n = geteasef(bTime, BAR_TIME2)	

	redraw 0
	bxss = int(n) 


	color  ,255,255
	boxf 480,428,bxss,430
	await 0
	redraw 1
	await 0
	
	loop

	return

*OS_Sleep
onclick goto *OS_To_Login

i=0
r=0
g=0
b=0

repeat 100

redraw 0
color : boxf
	color r,g,b
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100

setease 320,260,ease_quartic_out
y = getease(i,130)
pos ginfo_winx-ginfo_mesx>>1,y
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30

setease 440,380,ease_quartic_out
y = getease(i,130)
pos ginfo_winx-ginfo_mesx>>1,y
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
redraw 1
r=r+2
g=g+2
b=b+2

i=i+1

await 6

loop

repeat

redraw 0

color :boxf

	color 200,200,200
font "Yu Gothic UI Light",100
	pos -1000
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""
font "Yu Gothic UI Light",100
pos ginfo_winx-ginfo_mesx>>1,260
mes ""+gettime(4)+":"+strf("%02d", gettime(5))+""

font "Yu Gothic UI Light",30
	pos -1000
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"
font "Yu Gothic UI Light",30
pos ginfo_winx-ginfo_mesx>>1,380
yobi1 = "", "", "", "", "", "", "y"
mes ""+gettime(0)+"/"+gettime(1)+"/"+gettime(3)+" ("+yobi1.gettime(2)+")"

color 150,150,150
font "Yu Gothic UI Light",16
pos -1000
mes "NbN܂̓G^[L[ĊJ
pos ginfo_winx-ginfo_mesx>>1,580
mes "NbN܂̓G^[L[ĊJ

getkey flag, 13;EnterL[
if flag=1 : goto *OS_To_Login

Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}

redraw 1

wait 10

loop

*OS_To_Login
x=0
			repeat 8
x=x+32
	gmode 3,1280,680,x

	gcopy 2
	redraw 1
	pos 0,0
	color 255,255,255
	wait 1
	loop

goto *OS_Boot_OK



*OS_Setting_Pass_Customize_Name_Window

if Silent_Mode="Sound" {mmplay 2}else{}

gsel 102,-1
gsel 0,1

goto *OS_Setting_User_Customize_Ani

*OS_Key_Check
getkey Boot_Key, 112
if Boot_Key=1 : gosub *OS_Screen_Shot

getkey Boot_Key, 113
if Boot_Key=1 : if Silent_Mode="Sound" {
Silent_Mode="Silent"

Notification_Mode="gosub"

Notification_From="fBA"
Notification_Title="TCg[h"
Notification_Info="ʉȂǂ܂(A[)"

Notf_Sound=17

Notf_icon_Number=203
Notf_Sound_ON="ON"
gosub *OS_Notification
}else{
Silent_Mode="Sound"

Notification_Mode="gosub"

Notification_From="fBA"
Notification_Title="TCg[h"
Notification_Info="TCg[h܂"

Notf_Sound=18

Notf_icon_Number=203

gosub *OS_Notification
}

getkey Boot_Key, 114
if Boot_Key=1 {
Notification_From="ʒmeXg";ʒm̎M
Notification_Title="ʒm^Cg";ʒm̃^Cg
Notification_Info="bZ[W{";ʒmbZ[W

Notf_Sound=6;ʒm

Notf_icon_Number=203;ʒmACR

goto *OS_Notification
}

getkey Boot_Key, 27
if Boot_Key=1 : goto *OS_Power_Menu_Open;ً}p

return

*OS_Screen_Shot

if Screen_Capture_Stat="NoCapture" {
Notification_From="ScreenCapture"
Notification_Title="Lv`s"
Notification_Info="ZLeB|V[ɂAʂLv`ł\n܂"

Notf_Sound=20
Notf_icon_Number=200

gsel 0,1

goto *OS_Notification}
	
mmplay 15

onclick 0
onkey 0

	#module
#uselib "user32.dll"
#cfunc GetDC "GetDC" int
#cfunc GetWindowDC "GetWindowDC" int
#func ReleaseDC "ReleaseDC" int,int
#cfunc GetForegroundWindow "GetForegroundWindow"
#cfunc GetDesktopWindow "GetDesktopWindow"
#func GetWindowRect "GetWindowRect" int,int
#func GetClientRect "GetClientRect" int,int
#uselib "gdi32.dll"
#func BitBlt "BitBlt" int,int,int,int,int,int,int,int,int
#define NULL        0
#define SRCCOPY     0x00CC0020
#define CAPTUREBLT  0x40000000
#deffunc CaptureWindow  int hwndTarget, int clientOnly
dim rect, 4 
if clientOnly {
    GetClientRect hwndTarget, varptr(rect)
} else {
    GetWindowRect hwndTarget, varptr(rect)
}
if stat == 0 {
    return 1
}
sx = rect(2) - rect(0)
sy = rect(3) - rect(1)
buffer ginfo_sel, sx, sy, 0
if clientOnly {
    hdcTarget = GetDC(hwndTarget)
} else {
    hdcTarget = GetWindowDC(hwndTarget)
}
BitBlt hdc, 0, 0, sx, sy, hdcTarget, 0, 0, SRCCOPY | CAPTUREBLT
ReleaseDC hwndTarget, hdcTarget
return 0
#deffunc CaptureActiveWindow int clientOnly
CaptureWindow GetForegroundWindow(), clientOnly
return
#global
pressedButtonId = stat
gsel 0,1
buffer 999, 1280,680
CaptureActiveWindow 1

wait 25

mmplay 16

gsel 0,1

Notification_From="ScreenCapture"
Notification_Title="摜ۑ"
Notification_Info="Lv`摜ۑ..."

Notf_Sound=-1

Notf_icon_Number=205

Notification_Mode="gosub"

gosub *OS_Notification

    gsel 999 : bmpsave "Screenshot/Screenshot_"+gettime(0)+""+gettime(1)+""+gettime(3)+"_"+gettime(4)+""+strf("%02d", gettime(5))+".bmp"

gsel 0,1

onclick 0
onkey 0

Notification_From="ScreenCapture"
Notification_Title="Lv`ς"
Notification_Info="Lv`摜ȉ̃tH_֕ۑς\n摜̕ۑ [Screenshot]"

Notf_Sound=19

Notf_icon_Number=202

goto *OS_Notification

*OS_Notification

Notf_Close_Wait=0

if charalen(Notification_Info)>28 {Win_Notf_Y2=100}else{Win_Notf_Y2=80}

gsel 0,1

Win_x=(ginfo(10)-340)/2

if Notification_Stat=1 {
onclick 0
onkey 0

gsel 998,-1
}

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=440
Big_Window_Y=0

bgscr 998,390,Win_Notf_Y2,0,1280,20
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

color 230,230,230:boxf
Notification_Stat=1

Big_Window=0
	i=0


color 80,80,80
font "Yu Gothic UI",18,1
pos 80,14
mes ""+Notification_Title+" E "+Notification_From+"

color 60,60,60
font "Yu Gothic UI Semilight",15
pos 80,40
mes Notification_Info

Notf_Window=0
	i=0

if Silent_Mode="Sound" {mmplay Notf_Sound}else{if Notf_Sound_ON="ON"{ Notf_Sound_ON="" : mmplay Notf_Sound }}

onclick 0
onkey 0

gmode 0
hRegion = CreateRoundRectRgn (0, 0, 390, Win_Notf_Y2, 50, 50)
	SetWindowRgn hwnd1, hRegion, 1

Big_Window=0
	i=0

i=0
repeat 45
	setease 1280,860,ease_quartic_out
	Big_Window_X = getease(i,50)
	flag=0
redraw 0
	width ,,Big_Window_X,20
	i=i+1
redraw 1
await 6
loop

i=0
repeat 45
	setease 860,870,ease_quartic_out
	Big_Window_X = getease(i,50)
	flag=0
	width ,,Big_Window_X,20
	i=i+1
await 9
loop

gsel 0,1

onclick 1
onkey 1

if Notification_Mode="gosub" {Notification_Mode="":return}

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

*OS_Notification_Wait

if Notification_Screen_Stat=1{
if Notf_Close_Wait<450{
Notf_Close_Wait=Notf_Close_Wait+1
}else{
	
onclick 0
onkey 0

gsel 998,1

i=0

Notf_Close_Wait=0
Notification_Stat=0
	
i=0
repeat 45
redraw 0
	setease 870,1280,ease_quartic_out
	Big_Window_X = getease(i,50)
	flag=0
	width ,,Big_Window_X,20
	i=i+1
await 0
redraw 1
await 12
loop

gsel 998,-1
gsel 0,1

onclick 1
onkey 1

}}

if Notification_Screen_Stat=0{

if Notf_Close_Wait<750{
Notf_Close_Wait=Notf_Close_Wait+1
}else{

onclick 0
onkey 0

gsel 998,1

i=0
	
Notf_Close_Wait=0
Notification_Stat=0
i=0
repeat 45
redraw 0
	setease 870,1280,ease_quartic_out
	Big_Window_X = getease(i,50)
	flag=0
	width ,,Big_Window_X,20
	i=i+1
await 0
redraw 1
await 12
loop
gsel 998,-1
gsel 0,1

onclick 1
onkey 1

}}
return


*BOOT_ERR_SYS

title "Star Lightu[g}l[W[ - Star Light̋NɃG[܂BmFĂB

color :boxf

font "",30
color 255,255,255
pos 500,300
mes "Star LightNł܂

font "",20
color 200,200,200
	errornumber=wparam
	if errornumber=1 {pos 510,380:mes"VXeG[܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=2 {pos 510,380:mes"@ԈĂ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=3 {pos 510,380:mes"p[^̒lُł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=4 {pos 510,380:mes"vZŃG[܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=5 {pos 510,380:mes"p[^̏ȗ͂ł܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=6 {pos 510,380:mes"p[^̌^Ⴂ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=7 {pos 510,380:mes"z̗vfł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=8 {pos 510,380:mes"Lȃxw肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=9 {pos 510,380:mes"Tu[`⃋[ṽlXg[܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=10 {pos 510,380:mes"Tu[`Oreturn͖ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=11 {pos 510,380:mes"repeatOłloop͖ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=12 {pos 510,380:mes"t@CȂȖOł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=13 {pos 510,380:mes"摜t@C܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=14 {pos 510,380:mes"Ot@CĂяõG[ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=15 {pos 510,380:mes"vZŃJbR̋LqႢ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=16 {pos 510,380:mes"p[^̐܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=17 {pos 510,380:mes"񎮂ň镶z܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=18 {pos 510,380:mes"łȂϐw肵Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=19 {pos 510,380:mes"0ŏZ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=20 {pos 510,380:mes"obt@I[o[t[܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=21 {pos 510,380:mes"T|[gȂ@\I܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=22 {pos 510,380:mes"vZ̃JbR[܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=23 {pos 510,380:mes"ϐw肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=24 {pos 510,380:mes"ȊOw肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=25 {pos 510,380:mes"z̗vfԈĂ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=26 {pos 510,380:mes"̊mۂł܂ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=27 {pos 510,380:mes"^Cv̏Ɏs܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=28 {pos 510,380:mes"֐Ɉݒ肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=29 {pos 510,380:mes"X^bN̈̃I[o[t[ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=30 {pos 510,380:mes"ȖOp[^[Ɏw肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=31 {pos 510,380:mes"قȂ^zϐɑ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=32 {pos 510,380:mes"֐̃p[^[Lqsł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=33 {pos 510,380:mes"IuWFNg܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=34 {pos 510,380:mes"zE֐ƂĎgpłȂ^ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=35 {pos 510,380:mes"W[ϐw肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=36 {pos 510,380:mes"W[ϐ̎w肪ł\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=37 {pos 510,380:mes"ϐ^̕ϊɎs܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=38 {pos 510,380:mes"ODLĽĂяoɎs܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=39 {pos 510,380:mes"OIuWFNǧĂяoɎs܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=40 {pos 510,380:mes"֐̖߂lݒ肳Ă܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}
	if errornumber=41 {pos 510,380:mes"֐𖽗߂ƂċLqĂ܂\n\nG[ԍF"+errornumber+"\nG[sF"+lparam+"s"}

Boot_Stat="E1"
notesel Boot_Stat
notesave "system/Boot_Stat.txt"
stop

*OS_Key_Press
getkey Boot_Key, 112
if Boot_Key=1 : gosub *OS_Screen_Shot

getkey Boot_Key, 113
if Boot_Key=1 : if Silent_Mode="Sound" {
Silent_Mode="Silent"

Notification_Mode="gosub"

Notification_From="fBA"
Notification_Title="TCg[h"
Notification_Info="ʉȂǂ܂(A[)"

Notf_Sound=17

Notf_icon_Number=203
Notf_Sound_ON="ON"
gosub *OS_Notification
}else{
Silent_Mode="Sound"

Notification_Mode="gosub"

Notification_From="fBA"
Notification_Title="TCg[h"
Notification_Info="TCg[h܂"

Notf_Sound=18

Notf_icon_Number=203

gosub *OS_Notification
}

getkey Boot_Key, 27
if Boot_Key=1 : goto *OS_Power_Menu_Open;ً}p

getkey Key_Space,32
if Key_Space=1 {if Silent_Mode="Sound" {mmplay 22}else{}return}

getkey Key_Delete,8
if Key_Delete=1 {if Silent_Mode="Sound" {mmplay 23}else{}:return}else{

if Silent_Mode="Sound" {mmplay 21}else{}}

return

*OS_ERR_BSOD
onclick 0
onkey 0

repeat

redraw 0
color 0,60,200:boxf

gmode 2,1280,680,256
pos 70,190
gcopy 212

color 255,255,255
font "Yu Gothic UI Semilight",35

pos 330,290
mes "An error occurred in the Operating System"

font "Yu Gothic UI Semilight",25

pos 330,340
mes "ERROR : "+BSOD_MES+" "

font "Yu Gothic UI",22
pos 440,620
mes "Press and hold ESC to restart the system."

gmode 2,1280,680,256
pos 70,190
gcopy 1

color 255,255,255
font "Yu Gothic UI Semilight",35

pos 330,290
mes "An error occurred in the Operating System"

font "Yu Gothic UI Semilight",25

pos 330,340
mes "ERROR : "+BSOD_MES+" "

font "Yu Gothic UI",22
pos 440,620
mes "Press and hold ESC to restart the system."

redraw 1

repeat 500
gosub *Key_STOP
await 1
loop

redraw 0
color 0,60,200:boxf

gmode 2,1280,680,256
pos 70,190
gcopy 212

color 255,255,255
font "Yu Gothic UI Semilight",35

pos 330,290
mes "Star Light ɖ肪܂"

font "Yu Gothic UI Semilight",25

pos 330,340
mes "ERROR : "+BSOD_MES+" "

font "Yu Gothic UI",22
pos 440,620
mes "VXeċNɂ́A[Esc]𒷉܂"

redraw 1

repeat 500
gosub *Key_STOP
await 1
loop

loop

*Key_STOP

getkey flag, 27;EscL[
if flag=1 {

if Key_HOLD>=350 {

color 0,0,140:boxf
wait 16
cls 4

wait 100

goto *First
	
}else{Key_HOLD=Key_HOLD+1}
}else{Key_HOLD=0}

await 9

return

*updatesystem
	notesel systemver_new
	noteload "./update.txt"
	notesel systemver_now
	noteload "./system/nowver.txt"
	#include "hspsock.as"
clrobj 0
onclick 0
buffer 980, 1280,680
CaptureActiveWindow 1
gsel 0,1

buffer 981,1280,680

redraw 0
color 
if int(systemver_new) > int(systemver_now){
sockopen 0,"www.yahoo.co.jp",80
if stat=0{
	pos 555, 240
font "Yu Gothic UI Semilight",30
mes"ŐṼo[W\n         "+systemver_new
color 
}else{
	pos 555, 240
font "Yu Gothic UI Semilight",30
mes"ŐṼo[W\n"
color 255,, 
mes "lbg[NG[    "
color
}
sockclose 0
}

if int(systemver_new) = int(systemver_now){
sockopen 0,"www.yahoo.co.jp",80
if stat=0{
	pos 555, 240
font "Yu Gothic UI Semilight",30
mes"ŐṼo[W\n"
color ,255, 
mes "    No update"
color
}else{
	pos 555, 240
font "Yu Gothic UI Semilight",30
mes"ŐṼo[W\n"
color 255,, 
mes "lbg[NG[    "
color
}
sockclose 0
}
pos 555, 80
font "Yu Gothic UI Semilight",30
mes"݂̃o[W\n         "+systemver_now

color 80,80,80
pos -1000
font "Yu Gothic UI Semilight",17
mes "Copyright(C)2018-2019 milai.All rights reserved."

pos ginfo_winx-ginfo_mesx>>1,620
mes "Copyright(C)2018-2019 milai.All rights reserved."

setease 100,10,ease_quartic_out
Button_Toumei=Button_Toumei+10
x = getease(i,50)
Y = 10
font "Yu Gothic UI Semilight",35
gmode 3,1280,680,256:pos 10,10:gcopy 79:pos 38,18:color 80,80,80:font "Yu Gothic UI Semilight",14:mes "ݒ"

redraw 1

gsel 0,1

clrobj 0

gosub *OS_Transition_Animation
	onclick gosub *OS_Click_Setting_Menu_About
	OS_Easter_Sys="No"
objmode 2
objsize 130,45
objimage 84,0,0,0,0,250,0
pos 1130,620
font "Yu Gothic UI Semilight",16
if int(systemver_new) > int(systemver_now) : Updatechack = 1
sockopen 0,"www.yahoo.co.jp",80
if stat=0{
	Updatechack2 = int(Updatechack)+1
}
sockclose 0
if Updatechack2 = 2 :button goto"XV",*OS_Update

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

OS_Error_Mini_Mes="Av [VXeݒ] ~܂":OS_Error_Mini_Mes_2="̃G[pɂɋNꍇ́A[VXeݒ][T|[g]\n[₢킹]milaiւ₢킹肢܂B\n\nAvP[V͏I܂":goto *OS_System_Error_Mini

*OS_Update
	cls 4
	color 255,255,255
	font "Yu Gothic UI Semilight",30
	mes "Star Light Update Manager\n"
	font "Yu Gothic UI Semilight",15
	mes "Prease wait...\n"
		exist "system_image.7z"
if strsize = -1 {
}else{
delete "system_image.7z"	
}
	exist "Boot_image_repair.7z"
if strsize = -1 {
}else{
delete "Boot_image_repair.7z"	
}
	exist "Update_end.txt"
if strsize = -1 {
}else{
delete "Update_end.txt"	
}
exist "Update01.bat"
if strsize = -1 {
}else{
delete "Update01.bat"	
}
	wait 200
	#include "hspinet.as"
	   netinit 
        neturl "https://xeonserver.dip.jp/milai/update/files/"
        netdlname "system_image.7z"
       netrequest "system_image.7z"
       repeat 
         netexec res
             if res :  cls 4 : color 255,255,255 :font "Yu Gothic UI Semilight",15:mes "x[XVXet@C_E[h!" : break
          await 50
            if int(res) < 0 {
            cls 4
             color 255,255,255
             font "Yu Gothic UI Semilight",15
            mes "G[܂B"
            Error_Update = 1
            break
           }
        loop
wait 500
	   netinit 
        neturl "https://xeonserver.dip.jp/milai/update/files/"
        netdlname "Boot_image_repair.7z"
       netrequest "Boot_image_repair.7z"
       repeat 
         netexec res
              if res : color 255,255,255 : font "Yu Gothic UI Semilight",15 : mes "\nStar Lightu[g[_[_E[h!" : break
          await 50
            if int(res) < 0 {
            cls 4
             color 255,255,255
             font "Yu Gothic UI Semilight",15
            mes "\nG[܂B"
            Error_Update2 = int(Error_Update) +1
            break
           }
        loop

        if int(Error_Update) = 2{
	        cls 4
	        color 255,255,255
	        font "Yu Gothic UI Semilight",15
	        mes "XVt@C̃_E[hɗOG[܂B\nlbg[NڑmFAłȂꍇmilai.cfŃoO񍐂ĂB"

}else{
	wait 100
	mes "_E[h܂BK̂߁A΂炭҂...."
		Up_sys01 = "text"
bsave "./Update01.txt",Up_sys01
notesel Sys_copy
	noteload "./system/user/Sysup.txt"
notesel Sys_copy
	notesave "Update01.txt"
	Sys_rename = "Update01.txt"
	#include "hspext.as"
	fxren Sys_rename,"Update01.bat"
	exec "Update01.bat"
	wait 200
	goto *chacktxt
	stop
*chacktxt
	wait 20
	exist "Update_end.txt"
	if strsize = -1 {
goto *chacktxt
	}else{
		bsave "./Update02.txt",Up_sys01
notesel Sys_copy2
	noteload "./system/user/restart.txt"
notesel Sys_copy2
	notesave "Update02.txt"
	Sys_rename = "Update02.txt"
	fxren Sys_rename,"Update02.bat"
	exec "Update02.bat"
		end
	}

}
*support
	exist "server.txt"
	if strsize = -1 {
	}else{
		delete "server.txt"
}
		
	#include "hspinet.as"
	   netinit 
        neturl "https://xeonserver.dip.jp/milai/update/files/"
        netdlname "server.txt"
       netrequest "server.txt"
       repeat 
         netexec res
             if res : break
        loop
	
clrobj 0
onclick 0
buffer 980, 1280,680
CaptureActiveWindow 1
gsel 0,1

buffer 981,1280,680

redraw 0
color 
exist "server.txt"
	if strsize = 17 {
sockopen 0,"www.yahoo.co.jp",80
if stat=0{
	pos 555, 160
font "Yu Gothic UI Semilight",30
mes"T[o[̓\n"
color ,255, 
mes "    ғĂ܂"
color
}else{
	pos 555, 160
font "Yu Gothic UI Semilight",30
mes"T[o[̓\n"
color 255,, 
mes "lbg[NG[    "
color
}
sockclose 0
}else{
sockopen 0,"www.yahoo.co.jp",80
if stat=0{
	pos 555, 160
font "Yu Gothic UI Semilight",30
mes"T[o[̓\n"
color 255,, 
mes "    ~Ă܂"
color
}else{
	pos 555, 160
font "Yu Gothic UI Semilight",30
mes"T[o[̓\n"
color 255,, 
mes "lbg[NG[    "
color
}
sockclose 0
}
color 80,80,80
pos -1000
font "Yu Gothic UI Semilight",17
mes "Copyright(C)2018-2019 milai.All rights reserved."

pos ginfo_winx-ginfo_mesx>>1,620
mes "Copyright(C)2018-2019 milai.All rights reserved."

setease 100,10,ease_quartic_out
Button_Toumei=Button_Toumei+10
x = getease(i,50)
Y = 10
font "Yu Gothic UI Semilight",35
gmode 3,1280,680,256:pos 10,10:gcopy 79:pos 38,18:color 80,80,80:font "Yu Gothic UI Semilight",14:mes "ݒ"

redraw 1

gsel 0,1

clrobj 0

gosub *OS_Transition_Animation
	onclick gosub *OS_Click_Setting_Menu_About
	OS_Easter_Sys="No"
objmode 2
objsize 130,45
objimage 84,0,0,0,0,250,0
pos 1130,620
font "Yu Gothic UI Semilight",16
button goto"₢킹",*support_about

repeat
Notification_Screen_Stat=1
if Notification_Stat=1 {gosub *OS_Notification_Wait}
wait 1
loop

  repeat
        getkey flag, 17     ;L[̓`FbN
        if flag = 1 : goto *dev
        wait 10
    loop
    
OS_Error_Mini_Mes="Av [VXeݒ] ~܂":OS_Error_Mini_Mes_2="̃G[pɂɋNꍇ́A[VXeݒ][T|[g]\n[₢킹]milaiւ₢킹肢܂B\n\nAvP[V͏I܂":goto *OS_System_Error_Mini
*support_about
	data = ""

	dialog "𑗐M܂H", 3, data


;	u͂v{^ꍇ
	if stat = 6 {
		dialog "̂ߎgpł܂"
	}

;	uv{^ꍇ
	if stat = 7 {
	}
stop
*dev
	onkey gosub *OS_Key_Press
pass2=""
gsel 101,2
clrobj 0

dim point,2
point=0,0
ClientToScreen hwnd0,varptr(point)	//EBhE̍WXN[̍Wɕϊ

Big_Window_X=point(0)+440
Big_Window_Y=point(1)+680
hwnd1=hwnd	//DFEBhẼnh
SetParent hwnd1,hwnd0	//DFEBhE𔒃EBhE̎qEBhEɂ

if Pass_Setting_Window_Info=1 {Pass_Setting_Window_Info=0

redraw 0
color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 135,45
mes "pX[h"

font "Yu Gothic UI",17
pos 95,85
mes "Vݒ肷pX[h
redraw 1
objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 200,45
    
    pos 100,185
objimage 84,0,0,0,0,250,0
    button "",*OS_Setting_Pass_Change_Pass_Next

    objsize 70,30

    pos 315,5
    font "Yu Gothic UI Semilight",16
    color 0,166,255
    button gosub "LZ",*OS_Setting_User_Name_Change_Cancel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1
	
    Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 500,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 12
loop
}else{
    Big_Window=0
	i=0
gsel 101,2
repeat 45
	setease 300,0,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 7
loop
redraw 0
color 255,255,255:boxf
	
color 80,80,80
font "Yu Gothic UI",21,1
pos 135,45
mes "pX[h"

font "Yu Gothic UI",17
pos 95,85
mes "Vݒ肷pX[h
redraw 1

objmode 2
font "Yu Gothic UI Semilight",18
color 100,100,100
pos 100,130
input pass2,200,30
sendmsg objinfo_hwnd(0),204,'*'

font "Yu Gothic UI Semilight",17

    gmode 2
    objsize 195,45
    
    pos 195,214
objimage 84,0,0,0,0,250,0
    button "",*OS_Setting_Pass_Change_Pass_Next

    objsize 70,30

    gmode 2
    objsize 195,45
    objmode 2
    pos -1,214
objimage 85,0,0,0,0,500,0
    button "LZ",*OS_Setting_User_Name_Change_Cancel

	hRegion = CreateRoundRectRgn (0, 0, 390, 260, 50, 50)
	SetWindowRgn hwnd, hRegion, 1

    Big_Window=0
	i=0
if Silent_Mode="Sound" {mmplay 13}else{}
repeat 45
	setease 0,300,ease_quartic_inout
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 9
loop

	i=0

repeat 45
	setease 308,300,ease_quartic_out
	Big_Window = getease(i,50)
	Big_Window_Y3=Big_Window_Y-Big_Window
	flag=0
	width ,,Big_Window_X,Big_Window_Y3
	i=i+1
	await 10
loop

}
stop
*Twitter
dialog "Twitter API"
